diff options
| author | Julie Lala <jules@okfoc.us> | 2014-08-22 12:54:27 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-08-22 12:54:27 -0400 |
| commit | 4ec4b0e42c06b63962658ae8b886ee9466d09a21 (patch) | |
| tree | 5e3b0a52d61efa91495932f8cfe53a02dbe95af7 /public/assets/javascripts/rectangles/models/surface.js | |
| parent | 978634c1c323240f36548468703a9512710c60e7 (diff) | |
reject image if it doesnt fit
Diffstat (limited to 'public/assets/javascripts/rectangles/models/surface.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/models/surface.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/public/assets/javascripts/rectangles/models/surface.js b/public/assets/javascripts/rectangles/models/surface.js index a700fd4..9c45eaf 100644 --- a/public/assets/javascripts/rectangles/models/surface.js +++ b/public/assets/javascripts/rectangles/models/surface.js @@ -150,9 +150,6 @@ Surface.prototype.index_for_x = function(x, min_i){ min_i = min_i || 0 - if (x < 0 || x > this.width) { - return -1 - } for (var i = min_i; i < this.faces.length; i++) { if (this.faces[i].x.contains(x)) { return i |
