To avoid possible confusion, I'd recommend a different name for apply
(), as there's the JavaScript apply() method.
-thomas
Am 04.05.2007 um 08:51 schrieb Ben Nolan:
I don't think the little snippet will do it.
You want something like:
Behaviour = {
sheets_ : $A(),
register :
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);
I use this for events assignment (with little extension of mine):
http://alternateidea.com/blog/articles/2006/3/21/introducing-css-event-selectors
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core
On 5/4/07, Радослав Станков [EMAIL PROTECTED] wrote:
I use this for events assignment (with little extension of mine):
http://alternateidea.com/blog/articles/2006/3/21/introducing-css-event-selectors
With the stuff we have in the event branch, you can do this:
Event.observe($$('#item li'),
Mislav Marohnić wrote:
Yeah, this is it. You only need Event.onReady() for this. You can find
it in the event branch or you can copy it over from LowPro. Once
Event.onReady() gets into trunk, these 3 lines will probably be all you
need.
And it's even better than the current behaviour.js
I should update bennolan.com/behaviour/. :)
Ben
On 5/3/07, Michael Peters [EMAIL PROTECTED] wrote:
Mislav Marohnić wrote:
Yeah, this is it. You only need Event.onReady() for this. You can find
it in the event branch or you can copy it over from LowPro. Once
Event.onReady() gets into