Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created October 31, 2015 14:50
Show Gist options
  • Save NetguruGist/5a9237bd1821ac3fc544 to your computer and use it in GitHub Desktop.
Save NetguruGist/5a9237bd1821ac3fc544 to your computer and use it in GitHub Desktop.
runloop4.3 ruby
this._select = this.$().select2(options);
// run ember bindings on after select2 `change` event
this._select.on("change", run.bind(this, function() {
var data = this._select.select2("data");
this.selectionChanged(data);
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment