Permalink
Browse files

opera throws error

  • Loading branch information...
1 parent 7497b5d commit 6b99857e4b6f284da234bec8ad3ad66fc6fa0680 @BlackScorp BlackScorp committed Mar 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 assets/js/levels.js
View
@@ -40,8 +40,9 @@ Crafty.scene("Loading",function(){
});
},
function(e) {
+ var src = e.src ||"";
//update progress
- text.text("Loading "+e.src.substr(e.src.lastIndexOf('/') + 1).toLowerCase()+" Loaded: "+~~e.percent+"%");
+ text.text("Loading "+src.substr(src.lastIndexOf('/') + 1).toLowerCase()+" Loaded: "+~~e.percent+"%");
bar.progressbar({
value:~~e.percent
});

0 comments on commit 6b99857

Please sign in to comment.