Преглед изворни кода

Improved the jshint config a bit more

Kevin Brown пре 10 година
родитељ
комит
9c6a18700b
6 измењених фајлова са 11 додато и 5 уклоњено
  1. 6 0
      .jshintrc
  2. 1 1
      dist/js/select2.amd.full.js
  3. 1 1
      dist/js/select2.amd.js
  4. 1 1
      dist/js/select2.full.js
  5. 1 1
      dist/js/select2.js
  6. 1 1
      src/js/select2/data/ajax.js

+ 6 - 0
.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"
 }

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {

+ 1 - 1
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') {