Skip to content

Commit

Permalink
MD/CommonJS/Globals #12909
Browse files Browse the repository at this point in the history
  • Loading branch information
ktzhu committed Jun 10, 2014
1 parent 6a24824 commit f77cf0f
Show file tree
Hide file tree
Showing 14 changed files with 74 additions and 28 deletions.
2 changes: 0 additions & 2 deletions js/.jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireDotNotation": true,
Expand Down
4 changes: 2 additions & 2 deletions js/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"latedef" : true,
"laxbreak" : true,
"nonbsp" : true,
"strict" : true,
"undef" : true,
"unused" : true
"unused" : true,
"predef" : [ "define", "require" ]
}
8 changes: 6 additions & 2 deletions js/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -139,4 +143,4 @@
})
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,4 +93,4 @@

$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,4 +111,4 @@
e.preventDefault()
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -209,4 +213,4 @@
})
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -178,4 +182,4 @@
Plugin.call($target, option)
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
});
8 changes: 6 additions & 2 deletions js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -277,4 +281,4 @@
Plugin.call($target, option, this)
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -110,4 +114,4 @@
return this
}

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -157,4 +161,4 @@
})
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -125,4 +129,4 @@
Plugin.call($(this), 'show')
})

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -454,4 +458,4 @@
return this
}

}(jQuery);
});
8 changes: 6 additions & 2 deletions js/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -46,4 +50,4 @@
$.support.transition = transitionEnd()
})

}(jQuery);
});

0 comments on commit f77cf0f

Please sign in to comment.