Permalink
Browse files

remove redundant code

  • Loading branch information...
1 parent 5b4a368 commit 029e2332d5907fcca53fe57da7999f00e8f98e6a @crdx committed Nov 7, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −1 game.js
  2. +1 −5 init.js
View
@@ -42,7 +42,7 @@ function Puzzle(settings)
this.addEventHandlers();
- if (this.settings.imageUrl && (this.settings.imageWidth === 0 || this.settings.imageHeight === 0))
+ if (this.settings.imageUrl)
{
var image = new Image();
image.src = this.settings.imageUrl;
View
@@ -12,11 +12,7 @@ var defaults = {
// non-user-configurable
vOffset: 50, // offset from the top
- hOffset: 10, // offset from the left
- imageWidth: 0,
- imageHeight: 0,
- tileWidth: 0,
- tileHeight: 0
+ hOffset: 10 // offset from the left
};
var elements = {

0 comments on commit 029e233

Please sign in to comment.