Skip to content
Browse files

Catch for missing asset

  • Loading branch information...
1 parent 234cca6 commit a06952ebc4343725a31bfdc9784184543b278ce9 @cykod committed Sep 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/quintus_sprites.js
View
1 src/quintus_sprites.js
@@ -11,6 +11,7 @@ Quintus.Sprites = function(Q) {
// cols - number of columns per row
Q.Class.extend("SpriteSheet",{
init: function(name, asset,options) {
+ if(!Q.asset(asset)) { alert("Invalid Asset:" + asset); }
_.extend(this,{
name: name,
asset: asset,

0 comments on commit a06952e

Please sign in to comment.
Something went wrong with that request. Please try again.