Skip to content

Commit b3b8e22

Browse files
committed
Update 3.0.2
- Fixed update for backwards compatibility
1 parent 889a91e commit b3b8e22

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

bootstrap-notify.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Project: Bootstrap Notify = v3.0.1
2+
* Project: Bootstrap Notify = v3.0.2
33
* Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
44
* Author: Mouse0270 aka Robert McIntosh
55
* License: MIT License
@@ -105,7 +105,13 @@
105105

106106
this.notify = {
107107
$ele: this.$ele,
108-
update: function(commands) {
108+
update: function(command, update) {
109+
var commands = {};
110+
if (typeof command == "string") {
111+
commands[command] = update;
112+
}else{
113+
commands = command;
114+
}
109115
for (var command in commands) {
110116
switch (command) {
111117
case "type":

bootstrap-notify.min.js

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

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "remarkable-bootstrap-notify",
33
"main": "bootstrap-notify.js",
4-
"version": "3.0.1",
4+
"version": "3.0.2",
55
"homepage": "http://bootstrap-notify.remabledesigns.com/",
66
"authors": [
77
"mouse0270 <rmcintosh@remabledesigns.com>"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mouse0270/bootstrap-notify",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"type": "library",
55
"description": "This is a simple pluging that turns standard Bootstrap alerts into \"Growl-like\" notifications.",
66
"keywords": [

dist/bootstrap-notify.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Project: Bootstrap Notify = v3.0.1
2+
* Project: Bootstrap Notify = v3.0.2
33
* Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
44
* Author: Mouse0270 aka Robert McIntosh
55
* License: MIT License
@@ -105,7 +105,13 @@
105105

106106
this.notify = {
107107
$ele: this.$ele,
108-
update: function(commands) {
108+
update: function(command, update) {
109+
var commands = {};
110+
if (typeof command == "string") {
111+
commands[command] = update;
112+
}else{
113+
commands = command;
114+
}
109115
for (var command in commands) {
110116
switch (command) {
111117
case "type":

0 commit comments

Comments
 (0)