Skip to content

Commit 2b4761b

Browse files
committed
Merge pull request #7 from ankit/patch-1
Fixed bug in trigger
2 parents eed69ca + 9feb46d commit 2b4761b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/selectize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Selectize.prototype.trigger = function(event) {
201201
var args;
202202
if (typeof this.settings[event] === 'function') {
203203
args = Array.prototype.slice.apply(arguments, [1]);
204-
this.settings.event.apply(this, args);
204+
this.settings[event].apply(this, args);
205205
}
206206
};
207207

@@ -1446,4 +1446,4 @@ Selectize.prototype.render = function(templateName, data) {
14461446
}
14471447

14481448
return html;
1449-
};
1449+
};

0 commit comments

Comments
 (0)