Gabriel Handford has created a behavior.js script that allows you to unobtrusively automate Event.observe'tion.
Magic is in naming conventions, so that:
takes care of:
JAVASCRIPT:
-
-
Event.observe(theLinkElement, "click", function(event) { xhrTheFunction(event) });
-


2 Responses to “Automating JS Behavior Registration”
Trackbacks/Pingbacks
… [Trackback]…
[...] Informations on that Topic: utropicmedia.net/blog/automating-js-behavior-registration [...]…
Trackback…
Find more infos here…