SHARE
TWEET

Untitled

a guest Jun 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var app = app || {};
  2.  
  3. (function() {
  4.     function Form(el) {
  5.         this.createBounds();
  6.         this.el = el;
  7.         this.select = this.el.find('.select-field');
  8.         this.init();
  9.     }
  10.  
  11.     Form.prototype.init = function () {
  12.         var that = this;
  13.  
  14.         this.select.chosen({
  15.             "disable_search": true,
  16.             'rtl': true
  17.         });
  18.     }
  19.  
  20.     Form.prototype.destroy = function () {
  21.         //destroy events
  22.     }
  23.  
  24.     Form.prototype.createBounds = function () {
  25.         var that = this;
  26.         ['init', 'destroy']
  27.             .forEach(function (fn) {
  28.                 that[fn] = that[fn].bind(that)
  29.             });
  30.     }
  31.  
  32.     app.Form = Form;
  33. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top