Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused "parentStyles" variable in Drag.Move

  • Loading branch information...
commit a23473c71aadc7492346950af029670070d11230 1 parent 5ac4533
@arian arian authored
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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.