Use strict mode for function scopes.
Global strict mode is problematic when the script is concatenated with non-strict scripts.
This commit is contained in:
parent
da05a85ed6
commit
2ccb8f18d5
@ -23,7 +23,7 @@
|
|||||||
"devel" : true,
|
"devel" : true,
|
||||||
|
|
||||||
"strict" : true,
|
"strict" : true,
|
||||||
"globalstrict" : true,
|
"globalstrict" : false,
|
||||||
|
|
||||||
"asi" : false,
|
"asi" : false,
|
||||||
"laxbreak" : false,
|
"laxbreak" : false,
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
/* Copyright (c) 2012 HyeonJe Jun (http://github.com/noraesae)
|
/* Copyright (c) 2012 HyeonJe Jun (http://github.com/noraesae)
|
||||||
* Licensed under the MIT License
|
* Licensed under the MIT License
|
||||||
*/
|
*/
|
||||||
'use strict';
|
|
||||||
(function (factory) {
|
(function (factory) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define(['jquery'], factory);
|
define(['jquery'], factory);
|
||||||
@ -14,6 +15,7 @@
|
|||||||
factory(jQuery);
|
factory(jQuery);
|
||||||
}
|
}
|
||||||
}(function ($) {
|
}(function ($) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// The default settings for the plugin
|
// The default settings for the plugin
|
||||||
var defaultSettings = {
|
var defaultSettings = {
|
||||||
|
Loading…
Reference in New Issue
Block a user