Method: Apotomo::JavascriptMethods#update

Defined in:
lib/apotomo/widget/javascript_methods.rb

#update(*args) ⇒ Object

Same as #replace except that the content is wrapped in an update statement.

Example for :jquery:

update :view => :peek
#=> "jQuery(\"#mouse\").html(\"looking...")"


34
35
36
# File 'lib/apotomo/widget/javascript_methods.rb', line 34

def update(*args)
  wrap_in_javascript_for(:update, *args)
end