diff options
Diffstat (limited to 'js/alert.js')
| -rw-r--r-- | js/alert.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/alert.js b/js/alert.js index 905aacc15..f7fc6fb8e 100644 --- a/js/alert.js +++ b/js/alert.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'; // ALERT CLASS DEFINITION @@ -89,4 +93,4 @@ $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) -}(jQuery); +}); |
