aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.selectable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-14 03:00:16 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-14 03:00:16 +0000
commit7ea535fa1df43e8259ab9987a0e8e08866cfb1f5 (patch)
treede1237434696e0f094e2cfb35d7fd5880b8a72bb /ui/ui.selectable.js
parented4f58c6d3c914baafaf07ab1d168e6c199b8693 (diff)
downloadjquery-ui-7ea535fa1df43e8259ab9987a0e8e08866cfb1f5.tar.gz
jquery-ui-7ea535fa1df43e8259ab9987a0e8e08866cfb1f5.zip
fixed #3578 - ALL CODE: e, ui should be changed to event, ui
Diffstat (limited to 'ui/ui.selectable.js')
-rw-r--r--ui/ui.selectable.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js
index 090ca7f28..d551566bf 100644
--- a/ui/ui.selectable.js
+++ b/ui/ui.selectable.js
@@ -65,10 +65,10 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
.unbind(".selectable");
this._mouseDestroy();
},
- _mouseStart: function(e) {
+ _mouseStart: function(event) {
var self = this;
- this.opos = [e.pageX, e.pageY];
+ this.opos = [event.pageX, event.pageY];
if (this.options.disabled)
return;
@@ -78,7 +78,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
this.selectees = $(options.filter, this.element[0]);
// selectable START callback
- this.element.triggerHandler("selectablestart", [e, {
+ this.element.triggerHandler("selectablestart", [event, {
"selectable": this.element[0],
"options": options
}], options.start);
@@ -88,8 +88,8 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
this.helper.css({
"z-index": 100,
"position": "absolute",
- "left": e.clientX,
- "top": e.clientY,
+ "left": event.clientX,
+ "top": event.clientY,
"width": 0,
"height": 0
});
@@ -101,13 +101,13 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
this.selectees.filter('.ui-selected').each(function() {
var selectee = $.data(this, "selectable-item");
selectee.startselected = true;
- if (!e.metaKey) {
+ if (!event.metaKey) {
selectee.$element.removeClass('ui-selected');
selectee.selected = false;
selectee.$element.addClass('ui-unselecting');
selectee.unselecting = true;
// selectable UNSELECTING callback
- self.element.triggerHandler("selectableunselecting", [e, {
+ self.element.triggerHandler("selectableunselecting", [event, {
selectable: self.element[0],
unselecting: selectee.element,
options: options
@@ -116,12 +116,12 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
});
var isSelectee = false;
- $(e.target).parents().andSelf().each(function() {
+ $(event.target).parents().andSelf().each(function() {
if($.data(this, "selectable-item")) isSelectee = true;
});
return this.options.keyboard ? !isSelectee : true;
},
- _mouseDrag: function(e) {
+ _mouseDrag: function(event) {
var self = this;
this.dragged = true;
@@ -130,7 +130,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
var options = this.options;
- var x1 = this.opos[0], y1 = this.opos[1], x2 = e.pageX, y2 = e.pageY;
+ var x1 = this.opos[0], y1 = this.opos[1], x2 = event.pageX, y2 = event.pageY;
if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }
if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }
this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});
@@ -161,7 +161,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
selectee.$element.addClass('ui-selecting');
selectee.selecting = true;
// selectable SELECTING callback
- self.element.triggerHandler("selectableselecting", [e, {
+ self.element.triggerHandler("selectableselecting", [event, {
selectable: self.element[0],
selecting: selectee.element,
options: options
@@ -170,7 +170,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
} else {
// UNSELECT
if (selectee.selecting) {
- if (e.metaKey && selectee.startselected) {
+ if (event.metaKey && selectee.startselected) {
selectee.$element.removeClass('ui-selecting');
selectee.selecting = false;
selectee.$element.addClass('ui-selected');
@@ -183,7 +183,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
selectee.unselecting = true;
}
// selectable UNSELECTING callback
- self.element.triggerHandler("selectableunselecting", [e, {
+ self.element.triggerHandler("selectableunselecting", [event, {
selectable: self.element[0],
unselecting: selectee.element,
options: options
@@ -191,14 +191,14 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
}
}
if (selectee.selected) {
- if (!e.metaKey && !selectee.startselected) {
+ if (!event.metaKey && !selectee.startselected) {
selectee.$element.removeClass('ui-selected');
selectee.selected = false;
selectee.$element.addClass('ui-unselecting');
selectee.unselecting = true;
// selectable UNSELECTING callback
- self.element.triggerHandler("selectableunselecting", [e, {
+ self.element.triggerHandler("selectableunselecting", [event, {
selectable: self.element[0],
unselecting: selectee.element,
options: options
@@ -210,7 +210,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
return false;
},
- _mouseStop: function(e) {
+ _mouseStop: function(event) {
var self = this;
this.dragged = false;
@@ -222,7 +222,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
selectee.$element.removeClass('ui-unselecting');
selectee.unselecting = false;
selectee.startselected = false;
- self.element.triggerHandler("selectableunselected", [e, {
+ self.element.triggerHandler("selectableunselected", [event, {
selectable: self.element[0],
unselected: selectee.element,
options: options
@@ -234,13 +234,13 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
selectee.selecting = false;
selectee.selected = true;
selectee.startselected = true;
- self.element.triggerHandler("selectableselected", [e, {
+ self.element.triggerHandler("selectableselected", [event, {
selectable: self.element[0],
selected: selectee.element,
options: options
}], options.selected);
});
- this.element.triggerHandler("selectablestop", [e, {
+ this.element.triggerHandler("selectablestop", [event, {
selectable: self.element[0],
options: this.options
}], this.options.stop);