It would be quite useful to have the node that is passed to the
'rules' function be already extended (passed through $()).
I'm currently using a very similar bit of code:
var Behaviour = {
rulesets: [],
add: function(rules) {
Behaviour.rulesets.push(rules);
},
go: function() {
Behaviour.rulesets.each(function(ruleset) {
$H(ruleset).each(function(pair) {
$$(pair.key).each(function(node) {
pair.value($(node));
});
});
});
}
};
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---