Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  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. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement