Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set('opacity') and get('opacity') where used instead of setStyle('opa…

…city') and getStyle('opacity')
  • Loading branch information...
commit 6ed8e8a02f365643a6abab177a64bf62966ab3f6 1 parent d80a571
@olvlvl olvlvl 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.