Permalink
Browse files

JS syntax fixes

  • Loading branch information...
1 parent 47f3440 commit 9706378ee2bc8d3f8a69e3982ff5cff8bd012794 @joelfillmore joelfillmore committed Jan 15, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 PxLoaderImage.js
  2. +3 −1 PxLoaderSound.js
View
@@ -4,7 +4,7 @@
* PxLoader plugin to load images
*/
function PxLoaderImage(url, tags, priority) {
- var self = this;
+ var self = this,
loader = null;
this.img = new Image();
View
@@ -4,7 +4,7 @@
* PxLoader plugin to load sound using SoundManager2
*/
function PxLoaderSound(id, url, tags, priority) {
- var self = this;
+ var self = this,
loader = null;
this.tags = tags;
@@ -60,8 +60,10 @@ function PxLoaderSound(id, url, tags, priority) {
break;
case 2: // failed/error
loader.onError(self);
+ break;
case 3: // loaded/success
loader.onLoad(self);
+ break;
}
};

0 comments on commit 9706378

Please sign in to comment.