myLayer.on "change:x", "change:y", ->

Oh. You have to or the for loop just uses the last variable. Breaks my mind every time. 

Thanks,
Elliott

On Mon, Oct 20, 2014 at 2:21 PM, Koen Bok <notifications@github.com>
wrote:

>>  
>>  		# If the original listener was modified, remove that
>>  		# one instead
>>  		if listener.modifiedListener
>>  			listener = listener.modifiedListener
>>  
>> -		super eventName, listener
>> -		
>> -		@_context.eventManager.wrap(@_element).removeEventListener(eventName, listener)
>> -
>> -		if @_eventListeners
>> -			@_eventListeners[eventName] = _.without @_eventListeners[eventName], listener
>> +		eventNames = [eventNames] if typeof eventNames == 'string'
>> +			
>> +		for eventName in eventNames
>> +			do (eventName) =>
> I actually mean how you use `do` for scoping.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/koenbok/Framer/pull/130/files#r19114734