Method: Nitro::AsyncMorpher#before_start
- Defined in:
- lib/nitro/helper/javascript/morphing.rb
#before_start(buffer) ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/nitro/helper/javascript/morphing.rb', line 48 def before_start(buffer) require_script_file :prototype href = @attributes['href'] @attributes['href'] = '#' @attributes['onclick'] = "new Ajax.Request('#{href}'); return false;" @attributes.delete(@key) end |