This commit is contained in:
László Károlyi 2013-04-05 09:03:18 +02:00
parent 48afc5d0c0
commit 92fe882655
1 changed files with 6 additions and 5 deletions

View File

@ -36,6 +36,7 @@
that = this;
this.element.addClass("ui-selectable");
this.dragged = false;
this.helperClasses = ['no-top', 'no-right', 'no-bottom', 'no-left'];
// cache selectee children based on filter
this.refresh = function() {
var elementOffset = this.element.offset();
@ -126,14 +127,14 @@
} else {
y2 = this.scrollInfo.elementOffset.top + options.y2 - options.scrollTop;
}
var modifyHelperClass = function (className) {
for (var counter = 0; counter < this.helperClasses.length; counter++) {
var className = this.helperClasses[counter];
if (lassoClassesArray.indexOf(className) !== -1) {
that.helper.addClass(className);
this.helper.addClass(className);
} else {
that.helper.removeClass(className);
this.helper.removeClass(className);
}
};
['no-top', 'no-bottom', 'no-left', 'no-right'].forEach(modifyHelperClass);
}
this.helper.css({
left: x1,
top: y1,