Author: reebalazs
Date: Sun Dec 30 13:17:00 2007
New Revision: 50193

Modified:
   
kukit/kss.core/branch/ree-service-layer-and-refactoring/kss/core/plugins/core/demo/more_selectors.js
Log:
Simplify problematic part of the more selectors demo
(accessing the registry from the binder, is a bad practice)

Modified: 
kukit/kss.core/branch/ree-service-layer-and-refactoring/kss/core/plugins/core/demo/more_selectors.js
==============================================================================
--- 
kukit/kss.core/branch/ree-service-layer-and-refactoring/kss/core/plugins/core/demo/more_selectors.js
        (original)
+++ 
kukit/kss.core/branch/ree-service-layer-and-refactoring/kss/core/plugins/core/demo/more_selectors.js
        Sun Dec 30 13:17:00 2007
@@ -16,15 +16,7 @@
     this.count = this.countsomuch;
     // Just bind the event via the native click event binder
     oper.parms = {};
-    // Bind the event by looking up the binder class from the registry
-    //
-    // This __bind__ method offers an additional parameter to overwrite
-    // the name of the native browser event to bind.
-    // (Oper would fetch "annoyclicker-click" from the kssSelector, 
-    // and this is used for info messages, but "click" will be
-    // bound physically.)
-    var click = kukit.interfaces.global.binditerations.click;
-    click.binderClass.prototype.__bind__(oper, 'click');
+    kukit.pl.registerBrowserEvent(oper, null, 'click');
 };
 
 kukit.more_selectors.AnnoyClickerEvent.prototype.__default_click__ = 
function(name, oper) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to