Skip to content
This repository
Browse code

hasDelegated was using local variables. Should have been using an ins…

…tance var.
  • Loading branch information...
commit 59203182bc17721300f6a596b1f1c182a98ec509 1 parent a6c7cd3
Luke Morton authored February 13, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  src/uniform.coffee
6  src/uniform.coffee
@@ -143,13 +143,13 @@ class Uniform
143 143
       for eventType, callbacks of events
144 144
         delegateEvent.call(@, eventType, selector, callbacks)
145 145
 
146  
-    hasDelegated = true
  146
+    @hasDelegated = true
147 147
     return @
148 148
 
149 149
   # Undelegate all events
150 150
   undelegateEvents: ->
151  
-    @el.off(nsEvent.call(@)) if hasDelegated
152  
-    hasDelegated = false
  151
+    @el.off(nsEvent.call(@)) if @hasDelegated
  152
+    @hasDelegated = false
153 153
     return @
154 154
   
155 155
   # Cache elements relative to @elements

0 notes on commit 5920318

Please sign in to comment.
Something went wrong with that request. Please try again.