Skip to content

Commit

Permalink
Add export default
Browse files Browse the repository at this point in the history
  • Loading branch information
t4t5 committed Oct 21, 2015
1 parent 0d84b82 commit 3b9d8eb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions dist/sweetalert-dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sweetalert.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions lib/sweetalert.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };

Object.defineProperty(exports, '__esModule', {
value: true
});
// SweetAlert
// 2014-2015 (c) - Tristan Edwards
// github.com/t4t5/sweetalert
Expand Down Expand Up @@ -55,7 +58,7 @@ var lastFocusedButton;
*/
var sweetAlert, swal;

sweetAlert = swal = function () {
exports['default'] = sweetAlert = swal = function () {
var customizations = arguments[0];

_hasClass$addClass$removeClass$escapeHtml$_show$show$_hide$hide$isDescendant$getTopMargin$fadeIn$fadeOut$fireClick$stopEventPropagation.addClass(document.body, 'stop-scrolling');
Expand Down Expand Up @@ -296,4 +299,5 @@ if (typeof window !== 'undefined') {
window.sweetAlert = window.swal = sweetAlert;
} else {
_extend$hexToRgb$isIE8$logStr$colorLuminance.logStr('SweetAlert is a frontend module!');
}
}
module.exports = exports['default'];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sweetalert",
"version": "1.1.2",
"version": "1.1.3",
"description": "A beautiful replacement for JavaScript's \"alert\"",
"main": "lib/sweetalert.js",
"directories": {
Expand Down

0 comments on commit 3b9d8eb

Please sign in to comment.