aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/view-utils.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-11 14:42:15 -0700
committerJose Antonio Marquez2012-05-11 14:42:15 -0700
commitd2e1d4eeba4439ed26f2adf1c34991caf44a591f (patch)
tree7ccb54a07eb4adf793bae3f1a4ddd622bd4f9a0c /js/helper-classes/3D/view-utils.js
parentc87e538fdc337639bc4d54bb087dbf2b4f20297f (diff)
parent647a7cf0697debe7b3d6fa0d68cd6b37996d6b59 (diff)
downloadninja-d2e1d4eeba4439ed26f2adf1c34991caf44a591f.tar.gz
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'js/helper-classes/3D/view-utils.js')
-rwxr-xr-xjs/helper-classes/3D/view-utils.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js
index 5dc099ee..22446403 100755
--- a/js/helper-classes/3D/view-utils.js
+++ b/js/helper-classes/3D/view-utils.js
@@ -354,16 +354,13 @@ exports.ViewUtils = Montage.create(Component, {
354 354
355 // transform the bounds up the tree 355 // transform the bounds up the tree
356 var child = elt; 356 var child = elt;
357 var parent = elt.offsetParent;
358 while ( child ) 357 while ( child )
359 { 358 {
360 pt = this.childToParent( pt, child ); 359 pt = this.childToParent( pt, child );
361 360
362// if (parent === this._rootElement) break;
363 if (child === this._stageElement) break; 361 if (child === this._stageElement) break;
364 362
365 child = parent; 363 child = child.offsetParent;
366 parent = parent.offsetParent;
367 } 364 }
368 365
369 ///////////////////////////////////////////////////////// 366 /////////////////////////////////////////////////////////