diff --git a/.jshintrc b/.jshintrc index 026666ad5f..b401f6280d 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,10 +1,16 @@ { "bitwise": true, + "camelcase": true, + "curly": true, + "es3": true, "eqnull": true, + "freeze": true, "globals": { "define": true }, "indent": 2, "maxlen": 80, + "noarg": true, + "nonew": true, "quotmark": "single" } diff --git a/dist/js/select2.amd.full.js b/dist/js/select2.amd.full.js index 211a52fb1b..702d3dc48d 100644 --- a/dist/js/select2.amd.full.js +++ b/dist/js/select2.amd.full.js @@ -666,7 +666,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.amd.js b/dist/js/select2.amd.js index 211a52fb1b..702d3dc48d 100644 --- a/dist/js/select2.amd.js +++ b/dist/js/select2.amd.js @@ -666,7 +666,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.full.js b/dist/js/select2.full.js index 107009367e..30c321fc7f 100644 --- a/dist/js/select2.full.js +++ b/dist/js/select2.full.js @@ -10203,7 +10203,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/dist/js/select2.js b/dist/js/select2.js index 458f1c6f51..34d6e6a268 100644 --- a/dist/js/select2.js +++ b/dist/js/select2.js @@ -1094,7 +1094,7 @@ define('select2/data/ajax',[ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index f9f1ad4fdc..7d0ed695e3 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -21,7 +21,7 @@ define([ var self = this; var options = $.extend({ - type: 'GET', + type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') {