[Kss-devel] er._LateBinder and memory leaks

Christophe Bosse christophe.bosse at ingeniweb.com
Tue Apr 8 15:21:26 CEST 2008


Hey,

I've made a plugin for kss using jQuery.draggable / droppable. I was using
the 1.2.4 kss.core but now that I use 1.4 I have a problem.

I was using the LaterBinder but now it is a private function, can this be
turned a a public function for kukit.er ?

Check how I use it:
        var executor = new kukit.er._LateBinder(eventBinder, name, node);
        return function(e, ui){
            originalMethod.call(node, e, ui);
            if (!ui.cancel)
                executor.executeActions();
        };


originalMethod is the client function when starting dragging or dropping, I
need to call it just before the server one.


In a other hand I found many memory leaks under IE6 for each kss rules.
Check this to eradicate them:
http://novemberborn.net/javascript/event-cache
http://www.javascriptkit.com/javatutors/closuresleak/index.shtml
http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector.aspx

A tool to detect memory leaks: http://home.wanadoo.nl/jsrosman/


Also an other bug I found in actionreg.js  there is a kukit.logerror in
lowercase line 42.

I can submit you my jQuery drag and drop plugin to include it (the mochi kit
one is outdated and not functional).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kss-devel/attachments/20080408/a6738fbd/attachment-0001.htm 


More information about the Kss-devel mailing list