CoffeeScript
こういう事をすると class Hoge.Image constructor: -> this.preload() preload: -> image = new Image() #... こうなって無限再帰になります。頭悪いです。 Hoge.Image = (function() { function Image() { this.preload(); } Image.prototype.preload = fu…
こういう事をすると class Hoge.Image constructor: -> this.preload() preload: -> image = new Image() #... こうなって無限再帰になります。頭悪いです。 Hoge.Image = (function() { function Image() { this.preload(); } Image.prototype.preload = fu…