Skip to content

Instantly share code, notes, and snippets.

@ikekou
Last active December 19, 2015 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikekou/5939307 to your computer and use it in GitHub Desktop.
Save ikekou/5939307 to your computer and use it in GitHub Desktop.
[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