Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove redundant code

  • Loading branch information...
commit 029e2332d5907fcca53fe57da7999f00e8f98e6a 1 parent 5b4a368
Sean S authored
Showing with 2 additions and 6 deletions.
  1. +1 −1  game.js
  2. +1 −5 init.js
2  game.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;
6 init.js
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 = {
Please sign in to comment.
Something went wrong with that request. Please try again.