Instantly share code, notes, and snippets.

@ikekou /gist:5939307
Last active Dec 19, 2015

Embed
What would you like to do?
[CoffeeScript][JavaScript][CreateJS] Event.ADDED_TO_STAGEのかわり
class Hoge
constructor:()->
createjs.Ticker.addEventListener('tick',@_checkStage)
_checkStage:()=>
if @getStage()
createjs.Ticker.removeEventListener('tick',@_checkStage)
createjs.Ticker.addEventListener('tick',@_onTick)
_onTick:()=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment