From 620f27d21d997fe9192e89ea0efd9be8a3a41671 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Mon, 9 Mar 2015 18:49:14 -0600 Subject: [PATCH] More cleanup for ComboBox arch support, removed closure vars and unused lookup code, see #162 --- js/ComboBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ComboBox.js b/js/ComboBox.js index a7db3ccc..2b9cc8b5 100644 --- a/js/ComboBox.js +++ b/js/ComboBox.js @@ -216,13 +216,13 @@ define( function( require ) { var moveList = function() { var pButtonGlobal, pButtonLocal; if ( options.listPosition === 'above' ) { - pButtonGlobal = self.localToGlobalPoint( new Vector2( self.buttonNode.left, self.buttonNode.top ) ); + pButtonGlobal = self.localToGlobalPoint( new Vector2( buttonNode.left, buttonNode.top ) ); pButtonLocal = listParent.globalToLocalPoint( pButtonGlobal ); listNode.left = pButtonLocal.x; listNode.bottom = pButtonLocal.y; } else { - pButtonGlobal = self.localToGlobalPoint( new Vector2( self.buttonNode.left, self.buttonNode.bottom ) ); + pButtonGlobal = self.localToGlobalPoint( new Vector2( buttonNode.left, buttonNode.bottom ) ); pButtonLocal = listParent.globalToLocalPoint( pButtonGlobal ); listNode.left = pButtonLocal.x; listNode.top = pButtonLocal.y;