Permalink
Browse files

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
  • Loading branch information...
2 parents c772be4 + 3bf68f6 commit 0f89ebef85e94d2d93c3fa979c3a2cca393bd933 @pfiller pfiller committed Oct 24, 2011
View
@@ -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) {

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -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) {

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -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)
@@ -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)

0 comments on commit 0f89ebe

Please sign in to comment.