Skip to content

Commit 0112f49

Browse files
committed
Merge pull request #11 from baltazarqc/patch-1
when using $.growl with options param only
2 parents c334201 + 25493b1 commit 0112f49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bootstrap-growl.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
icon = null,
1212
$growl, growlClass, css, offsetAmount;
1313

14-
if (Object.prototype.toString.call(content) == "[object Object]") {
14+
if (typeof content == "object") {
1515
message = content.message;
1616
title = content.title ? " "+content.title+" " : null;
1717
icon = content.icon ? content.icon : null;
18+
options = content;
1819
}else{
1920
message = content;
2021
}

0 commit comments

Comments
 (0)