Skip to content
Browse files

Remove unused "parentStyles" variable in Drag.Move

  • Loading branch information...
1 parent 5ac4533 commit a23473c71aadc7492346950af029670070d11230 @arian arian committed Mar 13, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 Source/Drag/Drag.Move.js
View
7 Source/Drag/Drag.Move.js
@@ -51,10 +51,9 @@ Drag.Move = new Class({
this.container = document.id(this.container.getDocument().body);
if (this.options.style){
- if (this.options.modifiers.x == "left" && this.options.modifiers.y == "top"){
- var parentStyles,
- parent = element.getOffsetParent();
- var styles = element.getStyles('left', 'top');
+ if (this.options.modifiers.x == 'left' && this.options.modifiers.y == 'top'){
+ var parent = element.getOffsetParent(),
+ styles = element.getStyles('left', 'top');
if (parent && (styles.left == 'auto' || styles.top == 'auto')){
element.setPosition(element.getPosition(parent));
}

0 comments on commit a23473c

Please sign in to comment.
Something went wrong with that request. Please try again.