[jQuery] Re: Plugin design pattern (common practice?) for dealing with private functions

2010-01-16 Thread Tim Molendijk
gt; > > > > Maybe try using something like: > > > $.myplugin.fill.call( this, "red" ); > > > On Wed, Jan 13, 2010 at 6:47 PM, Tim Molendijk > > wrote: > > >> Hey all, > > >> I've been developing jQuery plugins for quite some

[jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Tim Molendijk
etc.), while preventing jQuery function namespace pollution. And of course it should be light- weight, as these private functions might be called very frequently. Thanks for your ideas. Regards, Tim Molendijk

[jQuery] $.fn.data() is significantly slowed down by $.fn.trigger().

2008-10-29 Thread Tim Molendijk
$.fn.data() internally uses $.fn.trigger() for whatever reason. When using $.fn.data() heavily, $.fn.trigger() starts to slow down the code. In my situation Firebug profiler tells me 20% of the time is consumed by $.fn.trigger() as a result of $.fn.data() calls. Shouldn't it be possible to get ri

[jQuery] Binding multiple custom namespaced events not working correctly

2008-10-28 Thread Tim Molendijk
Hello, Run the following code snippet in Firefox and open up Firebug. It fires a custom event upon left or right click. The handlers for 'myclick.left' and 'myclick.right' work as expected. The problem is that 'any click' is only logged to the console in case of a right click, and not in case of