Advertisement
Guest User

Untitled

a guest
Sep 29th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function (options) {
  2. if (!AbstractChosen.browser_is_supported()) {
  3. return this;
  4. }
  5. return this.each(function(input_field) {
  6. var $this, chosen;
  7.  
  8. $this = $(this);
  9. chosen = $this.data('chosen');
  10. if (options === 'destroy' && chosen) {
  11. chosen.destroy();
  12. } else if (!chosen) {
  13. $this.data('chosen', new Chosen(this, options));
  14. }
  15. });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement