Commit 1c6fa901 authored by Katie Zhu's avatar Katie Zhu Committed by fat
Browse files

MD/CommonJS/Globals #12909

parent 6a248244
5 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!25326Adjust examples,!13772AMD/CommonJS/Globals #12909
Showing with 75 additions and 28 deletions
+75 -28
...@@ -11,10 +11,9 @@ ...@@ -11,10 +11,9 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true, "disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true, "disallowTrailingComma": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingWhitespace": true, "disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true, "requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true, "requireCommaBeforeLineBreak": true,
"requireDotNotation": true, "requireDotNotation": true,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"latedef" : true, "latedef" : true,
"laxbreak" : true, "laxbreak" : true,
"nonbsp" : true, "nonbsp" : true,
"strict" : true,
"undef" : true, "undef" : true,
"unused" : true "unused" : true,
"predef" : [ "define", "require" ]
} }
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// AFFIX CLASS DEFINITION // AFFIX CLASS DEFINITION
...@@ -139,4 +143,4 @@ ...@@ -139,4 +143,4 @@
}) })
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// ALERT CLASS DEFINITION // ALERT CLASS DEFINITION
...@@ -89,4 +93,4 @@ ...@@ -89,4 +93,4 @@
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// BUTTON PUBLIC CLASS DEFINITION // BUTTON PUBLIC CLASS DEFINITION
...@@ -107,4 +111,4 @@ ...@@ -107,4 +111,4 @@
e.preventDefault() e.preventDefault()
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// CAROUSEL CLASS DEFINITION // CAROUSEL CLASS DEFINITION
...@@ -209,4 +213,4 @@ ...@@ -209,4 +213,4 @@
}) })
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// COLLAPSE PUBLIC CLASS DEFINITION // COLLAPSE PUBLIC CLASS DEFINITION
...@@ -178,4 +182,4 @@ ...@@ -178,4 +182,4 @@
Plugin.call($target, option) Plugin.call($target, option)
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// DROPDOWN CLASS DEFINITION // DROPDOWN CLASS DEFINITION
...@@ -148,4 +152,4 @@ ...@@ -148,4 +152,4 @@
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown) .on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// MODAL CLASS DEFINITION // MODAL CLASS DEFINITION
...@@ -277,4 +281,4 @@ ...@@ -277,4 +281,4 @@
Plugin.call($target, option, this) Plugin.call($target, option, this)
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// POPOVER PUBLIC CLASS DEFINITION // POPOVER PUBLIC CLASS DEFINITION
...@@ -110,4 +114,4 @@ ...@@ -110,4 +114,4 @@
return this return this
} }
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// SCROLLSPY CLASS DEFINITION // SCROLLSPY CLASS DEFINITION
...@@ -157,4 +161,4 @@ ...@@ -157,4 +161,4 @@
}) })
}) })
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// TAB CLASS DEFINITION // TAB CLASS DEFINITION
...@@ -125,4 +129,4 @@ ...@@ -125,4 +129,4 @@
Plugin.call($(this), 'show') Plugin.call($(this), 'show')
}) })
}(jQuery); });
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// TOOLTIP PUBLIC CLASS DEFINITION // TOOLTIP PUBLIC CLASS DEFINITION
...@@ -454,4 +458,4 @@ ...@@ -454,4 +458,4 @@
return this return this
} }
}(jQuery); });
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* ======================================================================== */ * ======================================================================== */
+function ($) { (function (o_o) {
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
})(function ($) {
'use strict'; 'use strict';
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
...@@ -46,4 +50,4 @@ ...@@ -46,4 +50,4 @@
$.support.transition = transitionEnd() $.support.transition = transitionEnd()
}) })
}(jQuery); });
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment