diff options
| author | ryderr <r@okfoc.us> | 2014-10-31 16:57:13 -0400 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-10-31 16:57:13 -0400 |
| commit | 75e49fa6b145f56e4db14b69c8a32717b5bc7414 (patch) | |
| tree | a843ed780e0520e187d6b01024c69c3561b38c3f /public/assets/javascripts/rectangles/models/rect.js | |
| parent | 9a27ee2450fc718c23712a4c9dc63b5dd3b4e405 (diff) | |
| parent | 60e86d8be94281d06d5327d6dad46b98e5df6a62 (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/rectangles/models/rect.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/models/rect.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/models/rect.js b/public/assets/javascripts/rectangles/models/rect.js index 00f2c55..c667cf5 100644 --- a/public/assets/javascripts/rectangles/models/rect.js +++ b/public/assets/javascripts/rectangles/models/rect.js @@ -169,6 +169,12 @@ var s = "[" + this.x.toString() + " " + this.y.toString() + "] " + sides return s } + Rect.prototype.exactString = function(){ + var sides = sidesToString(this.sides) + var s = "[" + this.x.exactString() + " " + this.y.exactString() + "] " + sides + return s + } + Rect.prototype.serialize = function(){ return { x: this.x.serialize(), y: this.y.serialize() } } |
