Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function (options) {
- if (!AbstractChosen.browser_is_supported()) {
- return this;
- }
- return this.each(function(input_field) {
- var $this, chosen;
- $this = $(this);
- chosen = $this.data('chosen');
- if (options === 'destroy' && chosen) {
- chosen.destroy();
- } else if (!chosen) {
- $this.data('chosen', new Chosen(this, options));
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement