1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-07-31 19:00:23 +02:00

MD/CommonJS/Globals #12909

This commit is contained in:
Katie Zhu
2014-06-09 22:18:05 -07:00
committed by fat
parent 6a2482447d
commit 1c6fa9010d
14 changed files with 75 additions and 28 deletions

View File

@@ -11,10 +11,9 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireDotNotation": true,

View File

@@ -9,7 +9,7 @@
"latedef" : true,
"laxbreak" : true,
"nonbsp" : true,
"strict" : true,
"undef" : true,
"unused" : true
"unused" : true,
"predef" : [ "define", "require" ]
}

View File

@@ -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';
// AFFIX CLASS DEFINITION
@@ -139,4 +143,4 @@
})
})
}(jQuery);
});

View File

@@ -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';
// ALERT CLASS DEFINITION
@@ -89,4 +93,4 @@
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
}(jQuery);
});

View File

@@ -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';
// BUTTON PUBLIC CLASS DEFINITION
@@ -107,4 +111,4 @@
e.preventDefault()
})
}(jQuery);
});

View File

@@ -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';
// CAROUSEL CLASS DEFINITION
@@ -209,4 +213,4 @@
})
})
}(jQuery);
});

View File

@@ -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';
// COLLAPSE PUBLIC CLASS DEFINITION
@@ -178,4 +182,4 @@
Plugin.call($target, option)
})
}(jQuery);
});

View File

@@ -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';
// DROPDOWN CLASS DEFINITION
@@ -148,4 +152,4 @@
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
}(jQuery);
});

View File

@@ -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';
// MODAL CLASS DEFINITION
@@ -277,4 +281,4 @@
Plugin.call($target, option, this)
})
}(jQuery);
});

View File

@@ -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';
// POPOVER PUBLIC CLASS DEFINITION
@@ -110,4 +114,4 @@
return this
}
}(jQuery);
});

View File

@@ -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';
// SCROLLSPY CLASS DEFINITION
@@ -157,4 +161,4 @@
})
})
}(jQuery);
});

View File

@@ -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';
// TAB CLASS DEFINITION
@@ -125,4 +129,4 @@
Plugin.call($(this), 'show')
})
}(jQuery);
});

View File

@@ -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';
// TOOLTIP PUBLIC CLASS DEFINITION
@@ -454,4 +458,4 @@
return this
}
}(jQuery);
});

View File

@@ -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';
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
@@ -46,4 +50,4 @@
$.support.transition = transitionEnd()
})
}(jQuery);
});