Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1040 from olvlvl/master

set('opacity') and get('opacity') where used instead of setStyle('opacity') and getStyle('opacity')
  • Loading branch information...
commit 5cc1462cceaec2d0999fbb9348b3a33037525dd3 2 parents d80a571 + 6ed8e8a
@cpojer cpojer authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Drag/Sortables.js
View
6 Source/Drag/Sortables.js
@@ -153,7 +153,7 @@ var Sortables = new Class({
this.idle = false;
this.element = element;
- this.opacity = element.get('opacity');
+ this.opacity = element.getStyle('opacity');
this.list = element.getParent();
this.clone = this.getClone(event, element);
@@ -168,7 +168,7 @@ var Sortables = new Class({
onSnap: function(){
event.stop();
this.clone.setStyle('visibility', 'visible');
- this.element.set('opacity', this.options.opacity || 0);
+ this.element.setStyle('opacity', this.options.opacity || 0);
this.fireEvent('start', [this.element, this.clone]);
}.bind(this),
onEnter: this.insert.bind(this),
@@ -182,7 +182,7 @@ var Sortables = new Class({
end: function(){
this.drag.detach();
- this.element.set('opacity', this.opacity);
+ this.element.setStyle('opacity', this.opacity);
if (this.effect){
var dim = this.element.getStyles('width', 'height'),
clone = this.clone,
Please sign in to comment.
Something went wrong with that request. Please try again.