Skip to content

Commit cc35ee4

Browse files
committed
generate minimized file
1 parent 1149af8 commit cc35ee4

4 files changed

Lines changed: 907 additions & 762 deletions

File tree

dist/js/bootstrap-notify.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@
229229
zIndex: this.settings.z_index + 1
230230
});
231231
},
232+
isFunction: function(element) {
233+
return typeof element === 'function';
234+
},
232235
placement: function() {
233236
var css, hasAnimation, offsetAmt, self, settings;
234237
self = this;
@@ -267,20 +270,20 @@
267270
offsetAmt = parseInt(offsetAmt) + parseInt(this.settings.spacing) + this.$ele.outerHeight();
268271
this.reposition(offsetAmt);
269272
}
270-
if ($.isFunction(self.settings.onShow)) {
273+
if (self.isFunction(self.settings.onShow)) {
271274
self.settings.onShow.call(this.$ele);
272275
}
273276
this.$ele.one(this.animations.start, function() {
274277
hasAnimation = true;
275278
}).one(this.animations.end, function() {
276279
self.$ele.removeClass(self.settings.animate.enter);
277-
if ($.isFunction(self.settings.onShown)) {
280+
if (self.isFunction(self.settings.onShown)) {
278281
self.settings.onShown.call(this);
279282
}
280283
});
281284
setTimeout((function() {
282285
if (!hasAnimation) {
283-
if ($.isFunction(self.settings.onShown)) {
286+
if (self.isFunction(self.settings.onShown)) {
284287
self.settings.onShown.call(this);
285288
}
286289
}
@@ -292,7 +295,7 @@
292295
this.$ele.find('[data-notify="dismiss"]').on('click', function() {
293296
self.close();
294297
});
295-
if ($.isFunction(self.settings.onClick)) {
298+
if (self.isFunction(self.settings.onClick)) {
296299
this.$ele.on('click', function(event) {
297300
if (event.target !== self.$ele.find('[data-notify="dismiss"]')[0]) {
298301
self.settings.onClick.call(this, event);
@@ -329,21 +332,21 @@
329332
hasAnimation = false;
330333
this.$ele.attr('data-closing', 'true').addClass(this.settings.animate.exit);
331334
self.reposition(posX);
332-
if ($.isFunction(self.settings.onClose)) {
335+
if (self.isFunction(self.settings.onClose)) {
333336
self.settings.onClose.call(this.$ele);
334337
}
335338
this.$ele.one(this.animations.start, function() {
336339
hasAnimation = true;
337340
}).one(this.animations.end, function() {
338341
$(this).remove();
339-
if ($.isFunction(self.settings.onClosed)) {
342+
if (self.isFunction(self.settings.onClosed)) {
340343
self.settings.onClosed.call(this);
341344
}
342345
});
343346
setTimeout((function() {
344347
if (!hasAnimation) {
345348
self.$ele.remove();
346-
if ($.isFunction(self.settings.onClosed)) {
349+
if (self.isFunction(self.settings.onClosed)) {
347350
self.settings.onClosed.call(this);
348351
}
349352
}

dist/js/bootstrap-notify.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "mouse0270 <rmcintosh@remabledesigns.com>",
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/jbox-web/bootstrap-notify.git"
14+
"url": "git+https://github.com/jbox-web/bootstrap-notify.git"
1515
},
1616
"bugs": {
1717
"url": "https://github.com/jbox-web/bootstrap-notify/issues"
@@ -26,15 +26,18 @@
2626
"message",
2727
"notice"
2828
],
29-
"dependencies": {},
3029
"devDependencies": {
3130
"eslint": "^7.32.0",
3231
"eslint-plugin-coffee": "^0.1.15",
3332
"gulp": "^4.0.2",
3433
"gulp-coffee": "^3.0.3",
35-
"gulp-eslint": "^6.0.0"
34+
"gulp-eslint": "^6.0.0",
35+
"gulp-terser": "^2.1.0"
3636
},
3737
"resolutions": {
3838
"tmp": "^0.2.4"
39+
},
40+
"scripts": {
41+
"test": "echo \"Error: no test specified\" && exit 1"
3942
}
4043
}

0 commit comments

Comments
 (0)