Permalink
Browse files

Kill the didLoad callback once it's been called.

  • Loading branch information...
1 parent 862ffb0 commit a17fd91a3272df24d7e6c50965a57d6570b13d1d @jverkoey committed Feb 27, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 dev/engine/class.texture.js
@@ -34,7 +34,7 @@ Breeze.Engine.Texture = function(path, didLoad) {
this.loaded_ = false;
/**
- * @type {function(Breeze.Engine.Texture)}
+ * @type {function(Breeze.Engine.Texture)|null}
* @private
*/
this.didLoad_ = didLoad;
@@ -74,5 +74,6 @@ Breeze.Engine.Texture.prototype.didLoadTexture = function(image) {
if (this.didLoad_) {
this.didLoad_(this);
+ this.didLoad_ = null;
}
};

0 comments on commit a17fd91

Please sign in to comment.