Skip to content

Commit

Permalink
Merge pull request #3851 from yallups/Terminating-script-undefined-args
Browse files Browse the repository at this point in the history
Fixes an issue of args === undefined and script terminates
  • Loading branch information
kevin-brown committed Oct 20, 2015
2 parents 8ad8f20 + f3a29b8 commit 6be96cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/select2/core.js
Expand Up @@ -357,6 +357,10 @@ define([
'select': 'selecting',
'unselect': 'unselecting'
};

if (args === undefined) {
args = {};
}

if (name in preTriggerMap) {
var preTriggerName = preTriggerMap[name];
Expand Down

0 comments on commit 6be96cf

Please sign in to comment.