Merge branch 'sd-ready-event' of https://github.com/sd/chosen into sd-sd-ready-event

Conflicts:
	chosen/chosen.jquery.min.js
	chosen/chosen.proto.min.js
	coffee/chosen.proto.coffee
This commit is contained in:
Patrick Filler 2011-10-24 13:36:14 -04:00
commit 0f89ebef85
6 changed files with 12 additions and 5 deletions

View file

@ -314,7 +314,10 @@
});
}
this.results_build();
return this.set_tab_index();
this.set_tab_index();
return this.form_field_jq.trigger("liszt:ready", {
chosen: this
});
};
Chosen.prototype.register_observers = function() {
this.container.mousedown(__bind(function(evt) {

File diff suppressed because one or more lines are too long

View file

@ -308,7 +308,10 @@
});
}
this.results_build();
return this.set_tab_index();
this.set_tab_index();
return this.form_field.fire("liszt:ready", {
chosen: this
});
};
Chosen.prototype.register_observers = function() {
this.container.observe("mousedown", __bind(function(evt) {

File diff suppressed because one or more lines are too long

View file

@ -70,7 +70,7 @@ class Chosen extends AbstractChosen
this.results_build()
this.set_tab_index()
@form_field_jq.trigger("liszt:ready", {chosen: this})
register_observers: ->
@container.mousedown (evt) => this.container_mousedown(evt)

View file

@ -63,6 +63,7 @@ class Chosen extends AbstractChosen
this.results_build()
this.set_tab_index()
@form_field.fire("liszt:ready", {chosen: this})
register_observers: ->
@container.observe "mousedown", (evt) => this.container_mousedown(evt)