Author: reebalazs
Date: Sun Dec 30 13:56:17 2007
New Revision: 50197

Modified:
   
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/more_selectors.js
Log:
Attempt to simplify the binding of the browser click event from the 
more_selectors demo.
This solution is better and solves the problem with
reusing core from the browser level. Also I had to realize
that accessing the registry from the binder method
is not needed after all.

Modified: 
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/more_selectors.js
==============================================================================
--- 
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/more_selectors.js
  (original)
+++ 
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/more_selectors.js
  Sun Dec 30 13:56:17 2007
@@ -13,10 +13,9 @@
     // overwrite countsomuch
     this.countsomuch = oper.parms.count;
     this.count = this.countsomuch;
-    // Just bind the event via the native event binder
+    // register this as a "click" browser event
     oper.parms = {};
-    var clickBinder = 
kukit.eventsGlobalRegistry.getBinderClassByEventNamespace('', 'click');
-    clickBinder.prototype.__bind__('click', func_to_bind, oper);
+    kukit.pl.registerBrowserEvent(oper, null, 'click');
 };
 
 this.__default_click__ = function(name, oper) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to