aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-24 09:40:16 -0800
committerNivesh Rajbhandari2012-02-24 09:40:16 -0800
commit2f2472efe0ca55d52fcdf4934bfa52008b68e1de (patch)
tree062c38a7da8a1179bdff558427c47846ebdf5c95 /js
parentc7b8d5d07834f85c530baf041ec2c818e86cc3a3 (diff)
downloadninja-2f2472efe0ca55d52fcdf4934bfa52008b68e1de.tar.gz
Javascript does not evaluate a return with its expression in a new line. The return expression must begin on the same line as the return keyword.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/helper-classes/3D/hit-record.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/helper-classes/3D/hit-record.js b/js/helper-classes/3D/hit-record.js
index 5546cc5a..2c60adc6 100755
--- a/js/helper-classes/3D/hit-record.js
+++ b/js/helper-classes/3D/hit-record.js
@@ -139,12 +139,10 @@ var HitRecord = exports.HitRecord = Object.create(Object.prototype,
139 139
140 isSomeGridTypeSnap : { 140 isSomeGridTypeSnap : {
141 value: function() { 141 value: function() {
142 return 142 return ((this._type == this.SNAP_TYPE_GRID_VERTEX) ||
143 (
144 (this._type == this.SNAP_TYPE_GRID_VERTEX) ||
145 (this._type == this.SNAP_TYPE_GRID_HORIZONTAL) || 143 (this._type == this.SNAP_TYPE_GRID_HORIZONTAL) ||
146 (this._type == this.SNAP_TYPE_GRID_VERTICAL) 144 (this._type == this.SNAP_TYPE_GRID_VERTICAL)
147 ) 145 );
148 } 146 }
149 }, 147 },
150 148