diff options
author | fat <fat@folders.local> | 2015-05-08 03:07:38 +0300 |
---|---|---|
committer | fat <fat@folders.local> | 2015-05-08 03:14:38 +0300 |
commit | 660505188241418ffda53b5eb848defecd5f57e1 (patch) | |
tree | ec0895cb5267cc798f386f96caca653a7fe191f1 /js/dist/alert.js | |
parent | c3a79b1a8c2fa8d7fc8edcd3e626dad8b45d5dc3 (diff) |
button -> es6
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r-- | js/dist/alert.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js index 76b280a0c3..4226dd61a7 100644 --- a/js/dist/alert.js +++ b/js/dist/alert.js @@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons * -------------------------------------------------------------------------- */ -var Alert = (function () { +var Alert = (function ($) { /** * ------------------------------------------------------------------------ @@ -62,6 +62,8 @@ var Alert = (function () { // public value: function close(element) { + element = element || this.element; + var rootElement = this._getRootElement(element); var customEvent = this._triggerCloseEvent(rootElement); @@ -167,10 +169,10 @@ var Alert = (function () { $.fn[NAME] = Alert._jQueryInterface; $.fn[NAME].Constructor = Alert; $.fn[NAME].noConflict = function () { - $.fn[NAME] = Alert._JQUERY_NO_CONFLICT; + $.fn[NAME] = JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; return Alert; -})(); +})(jQuery); //# sourceMappingURL=alert.js.map
\ No newline at end of file |