search for: abstractioninprototype

Displaying 4 results from an estimated 4 matches for "abstractioninprototype".

2006 Jun 15
0
RE: Yahoo!-like Event objectemulation/abstractioninPrototype?
> Hehe thanks for putting so much work into this, but to me it certainly > begs my original question. Any chance of making "e" work the same in > FF and IE? You''re missing the point. The ''e'' object in IE and Firefox has different functions for getting at different things. The Yahoo toolkit does not do that for you either. In their toolkit, you have
2006 Jun 16
2
RE: Yahoo!-likeEventobjectemulation/abstractioninPrototype?
> Seems to work great! Can I use that code in my project? My eventual > hope is to release the project under the GPLv2. Sure, go nuts. You''re welcome to put my name in there if you want, but don''t put my email address. If you run into more things that are needed, feel free to add them. Greg
2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
This is obviously rough draft and not thoroughly tested, but it seems to work. If you''d like, give it a try (load it after you load prototype.js): Function.prototype.bindAsEventListener = function(object) { var __method = this; return function(event) { return __method.call(object, new SuperEvent(event || window.event)); } } var SuperEvent = Class.create();
2006 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
...ilto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 12:18 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails-spinoffs] Yahoo!-like Event object > emulation/abstractioninPrototype? > > On Thu, Jun 15, 2006 at 11:28:03AM -0600, Gregory Hill wrote: > # Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); > # > # That might fix your wagon. > > That didn''t seem to make any difference. FF still works, IE still > doe...