Skip to content

Commit

Permalink
JS syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joelfillmore committed Jan 15, 2012
1 parent 47f3440 commit 9706378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PxLoaderImage.js
Expand Up @@ -4,7 +4,7 @@
* PxLoader plugin to load images * PxLoader plugin to load images
*/ */
function PxLoaderImage(url, tags, priority) { function PxLoaderImage(url, tags, priority) {
var self = this; var self = this,
loader = null; loader = null;


this.img = new Image(); this.img = new Image();
Expand Down
4 changes: 3 additions & 1 deletion PxLoaderSound.js
Expand Up @@ -4,7 +4,7 @@
* PxLoader plugin to load sound using SoundManager2 * PxLoader plugin to load sound using SoundManager2
*/ */
function PxLoaderSound(id, url, tags, priority) { function PxLoaderSound(id, url, tags, priority) {
var self = this; var self = this,
loader = null; loader = null;


this.tags = tags; this.tags = tags;
Expand Down Expand Up @@ -60,8 +60,10 @@ function PxLoaderSound(id, url, tags, priority) {
break; break;
case 2: // failed/error case 2: // failed/error
loader.onError(self); loader.onError(self);
break;
case 3: // loaded/success case 3: // loaded/success
loader.onLoad(self); loader.onLoad(self);
break;
} }
}; };


Expand Down

0 comments on commit 9706378

Please sign in to comment.