Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = app || {};
- (function() {
- function Form(el) {
- this.createBounds();
- this.el = el;
- this.select = this.el.find('.select-field');
- this.init();
- }
- Form.prototype.init = function () {
- var that = this;
- this.select.chosen({
- "disable_search": true,
- 'rtl': true
- });
- }
- Form.prototype.destroy = function () {
- //destroy events
- }
- Form.prototype.createBounds = function () {
- var that = this;
- ['init', 'destroy']
- .forEach(function (fn) {
- that[fn] = that[fn].bind(that)
- });
- }
- app.Form = Form;
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement