dabo Commit
Revision 5427
Date: 2009-09-26 10:27:08 -0700 (Sat, 26 Sep 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5427
Changed:
U trunk/dabo/lib/eventMixin.py
Log:
Cleaned up the syntax in the unbindEvent() method.
Diff:
Modified: trunk/dabo/lib/eventMixin.py
===================================================================
--- trunk/dabo/lib/eventMixin.py 2009-09-26 17:25:53 UTC (rev 5426)
+++ trunk/dabo/lib/eventMixin.py 2009-09-26 17:27:08 UTC (rev 5427)
@@ -143,7 +143,7 @@
num = len(self._EventBindings)
self._EventBindings = []
newBindings = []
- for index in range(num, 0, -1):
+ while eb:
binding = eb.pop()
bindingClass, bindingFunction = binding[0],
binding[1]
@@ -225,7 +225,6 @@
return True
regid = None
- contextText = ""
if context != self:
try:
regid = self.RegID
@@ -235,7 +234,6 @@
regid = None
if regid is None or regid == "":
return False
- contextText = "_%s" % regid
# Do the import here; putting it at the top throws errors while
Dabo is starting up.
import dabo.dEvents as dEvents
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]