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:
Hyunje Alex Jun 2014-03-11 16:08:07 +09:00
parent da05a85ed6
commit 2ccb8f18d5
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@
"devel" : true, "devel" : true,
"strict" : true, "strict" : true,
"globalstrict" : true, "globalstrict" : false,
"asi" : false, "asi" : false,
"laxbreak" : false, "laxbreak" : false,

View File

@ -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 = {