081580bcd8
There were a few undefined variables being referenced within the Select2 code. The JSHint configuration has been modified to fail if there are undefined variables being referenced, including any global variables. There is an exception that is being made for the jQuery shim, as it must try to find the global jQuery references. An exception is made for the test helpers, as the SauceLabs reporting variables are not camelCase, and would normally trigger warnings. This closes https://github.com/select2/select2/pull/3028.
1 line
827 B
JavaScript
1 line
827 B
JavaScript
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+=" í viðbót",n},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelection:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})(); |