Skip to content

Commit

Permalink
Fix merge conflicts caused by min version
Browse files Browse the repository at this point in the history
  • Loading branch information
pfiller committed Aug 16, 2011
1 parent 57fcc57 commit 1d6df98
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
16 changes: 8 additions & 8 deletions chosen/chosen.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
return this.set_tab_index();
};
Chosen.prototype.register_observers = function() {
this.container.click(__bind(function(evt) {
return this.container_click(evt);
this.container.mousedown(__bind(function(evt) {
return this.container_mousedown(evt);
}, this));
this.container.mouseenter(__bind(function(evt) {
return this.mouse_enter(evt);
}, this));
this.container.mouseleave(__bind(function(evt) {
return this.mouse_leave(evt);
}, this));
this.search_results.click(__bind(function(evt) {
return this.search_results_click(evt);
this.search_results.mouseup(__bind(function(evt) {
return this.search_results_mouseup(evt);
}, this));
this.search_results.mouseover(__bind(function(evt) {
return this.search_results_mouseover(evt);
Expand Down Expand Up @@ -138,8 +138,8 @@
}, this));
}
};
Chosen.prototype.container_click = function(evt) {
if (evt && evt.type === "click") {
Chosen.prototype.container_mousedown = function(evt) {
if (evt && evt.type === "mousedown") {
evt.stopPropagation();
}
if (!this.pending_destroy_click) {
Expand Down Expand Up @@ -167,7 +167,7 @@
Chosen.prototype.input_focus = function(evt) {
if (!this.active_field) {
return setTimeout((__bind(function() {
return this.container_click();
return this.container_mousedown();
}, this)), 50);
}
};
Expand Down Expand Up @@ -356,7 +356,7 @@
return this.search_field.removeClass("default");
}
};
Chosen.prototype.search_results_click = function(evt) {
Chosen.prototype.search_results_mouseup = function(evt) {
var target;
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
if (target.length) {
Expand Down
Loading

1 comment on commit 1d6df98

@wjcrowcroft
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Please # to comment.