Open natedub opened 14 years ago
There's a small operator precedence problem in reposition() that causes the function to throw an error when this.target == null. The ternary operator in this statement:
coords = coords || (this.target && this.target.offsetHeight) ? this.target.getCoordinates(this.box.getOffsetParent()) : {top: window.getScrollTop(), left: 0, width: 40, height: 40};
needs to be wrapped in parentheses:
coords = coords || ((this.target && this.target.offsetHeight) ? this.target.getCoordinates(this.box.getOffsetParent()) : {top: window.getScrollTop(), left: 0, width: 40, height: 40});
There's a small operator precedence problem in reposition() that causes the function to throw an error when this.target == null. The ternary operator in this statement:
needs to be wrapped in parentheses: