Skip to content

Commit

Permalink
Changed the ImageSOurce Loaded function to IsLoaded to correspond wit…
Browse files Browse the repository at this point in the history
…h the rest of the code base.

#41
  • Loading branch information
NTaylorMullen committed Aug 2, 2013
1 parent 490d530 commit 7d81260
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion EndGate/EndGate.Core.JS/Graphics/ImageSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var EndGate;
this._size = new EndGate.Size2d(width, height);
this.ClipLocation = new EndGate.Vector2d(clipX, clipY);
this.ClipSize = new EndGate.Size2d(clipWidth, clipHeight);
} else {
this.ClipSize = null;
}
}
Object.defineProperty(ImageSource.prototype, "OnLoaded", {
Expand Down Expand Up @@ -67,7 +69,7 @@ var EndGate;
/**
* Determines if the ImageSource has been loaded.
*/
ImageSource.prototype.Loaded = function () {
ImageSource.prototype.IsLoaded = function () {
return this._loaded;
};

Expand Down
5 changes: 4 additions & 1 deletion EndGate/EndGate.Core.JS/Graphics/ImageSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ module EndGate.Graphics {
this.ClipLocation = new Vector2d(clipX, clipY);
this.ClipSize = new Size2d(clipWidth, clipHeight);
}
else {
this.ClipSize = null; // Waiting for the image source OnLoad to set it
}
}

/**
Expand All @@ -96,7 +99,7 @@ module EndGate.Graphics {
/**
* Determines if the ImageSource has been loaded.
*/
public Loaded(): boolean {
public IsLoaded(): boolean {
return this._loaded;
}

Expand Down

0 comments on commit 7d81260

Please sign in to comment.