Permalink
Browse files

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

…tance var.
  • Loading branch information...
lukemorton committed Feb 13, 2012
1 parent a6c7cd3 commit 59203182bc17721300f6a596b1f1c182a98ec509
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/uniform.coffee
View
@@ -143,13 +143,13 @@ class Uniform
for eventType, callbacks of events
delegateEvent.call(@, eventType, selector, callbacks)
- hasDelegated = true
+ @hasDelegated = true
return @
# Undelegate all events
undelegateEvents: ->
- @el.off(nsEvent.call(@)) if hasDelegated
- hasDelegated = false
+ @el.off(nsEvent.call(@)) if @hasDelegated
+ @hasDelegated = false
return @
# Cache elements relative to @elements

0 comments on commit 5920318

Please sign in to comment.