Skip to content

Commit

Permalink
Update 3.0.2
Browse files Browse the repository at this point in the history
- Fixed update for backwards compatibility
  • Loading branch information
mouse0270 committed Apr 4, 2015
1 parent 889a91e commit b3b8e22
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
10 changes: 8 additions & 2 deletions bootstrap-notify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Project: Bootstrap Notify = v3.0.1
* Project: Bootstrap Notify = v3.0.2
* Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
* Author: Mouse0270 aka Robert McIntosh
* License: MIT License
Expand Down Expand Up @@ -105,7 +105,13 @@

this.notify = {
$ele: this.$ele,
update: function(commands) {
update: function(command, update) {
var commands = {};
if (typeof command == "string") {
commands[command] = update;
}else{
commands = command;
}
for (var command in commands) {
switch (command) {
case "type":
Expand Down
4 changes: 2 additions & 2 deletions bootstrap-notify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "remarkable-bootstrap-notify",
"main": "bootstrap-notify.js",
"version": "3.0.1",
"version": "3.0.2",
"homepage": "http://bootstrap-notify.remabledesigns.com/",
"authors": [
"mouse0270 <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mouse0270/bootstrap-notify",
"version": "3.0.1",
"version": "3.0.2",
"type": "library",
"description": "This is a simple pluging that turns standard Bootstrap alerts into \"Growl-like\" notifications.",
"keywords": [
Expand Down
10 changes: 8 additions & 2 deletions dist/bootstrap-notify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Project: Bootstrap Notify = v3.0.1
* Project: Bootstrap Notify = v3.0.2
* Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
* Author: Mouse0270 aka Robert McIntosh
* License: MIT License
Expand Down Expand Up @@ -105,7 +105,13 @@

this.notify = {
$ele: this.$ele,
update: function(commands) {
update: function(command, update) {
var commands = {};
if (typeof command == "string") {
commands[command] = update;
}else{
commands = command;
}
for (var command in commands) {
switch (command) {
case "type":
Expand Down
Loading

0 comments on commit b3b8e22

Please sign in to comment.