diff options
| author | Jacob <[email protected]> | 2014-06-10 17:24:15 -0700 |
|---|---|---|
| committer | Jacob <[email protected]> | 2014-06-10 17:24:15 -0700 |
| commit | 8d8524e5946fbc72e15cd206423e5ff1b10d6b2f (patch) | |
| tree | 9f0152779a1dc63696eb00463c88106ac14026e3 /js/button.js | |
| parent | bbdaf0f244f24ce55171b8dadbdae72fdf6a62d2 (diff) | |
| parent | 1c6fa9010daf0d0c21de9e20fe6ac4dba1788d90 (diff) | |
| download | bootstrap-8d8524e5946fbc72e15cd206423e5ff1b10d6b2f.tar.xz bootstrap-8d8524e5946fbc72e15cd206423e5ff1b10d6b2f.zip | |
Merge pull request #13772 from twbs/fat-amd
AMD/CommonJS/Globals #12909
Diffstat (limited to 'js/button.js')
| -rw-r--r-- | js/button.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/button.js b/js/button.js index aa7145072..cab7d8c3d 100644 --- a/js/button.js +++ b/js/button.js @@ -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); +}); |
