Skip to content

Commit a851efd

Browse files
author
ehynds
committed
fixed a couple of super find/replace bugs; fixed typo
1 parent a04a3c8 commit a851efd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jquery.notify.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
this.element.addClass("ui-notify").children().addClass("ui-notify-message ui-notify-message-style").each(function(i){
3131
var key = this.id || i;
3232
self.keys.push(key);
33-
self.templates[key] = $(this).removeAttr("id").wrap("<div></div>").__super().html(); // because $(this).andSelf().html() no workie
33+
self.templates[key] = $(this).removeAttr("id").wrap("<div></div>").parent().html(); // because $(this).andSelf().html() no workie
3434
}).end().empty().show();
3535
},
3636

@@ -45,7 +45,7 @@
4545

4646
// remove default styling class if rolling w/ custom classes
4747
if(opts && opts.custom){
48-
tpl = $(tpl).removeClass("ui-notify-message-style").wrap("<div></div>").__super().html();
48+
tpl = $(tpl).removeClass("ui-notify-message-style").wrap("<div></div>").parent().html();
4949
}
5050

5151
this.openNotifications = this.openNotifications || 0;
@@ -101,7 +101,7 @@
101101
self.open();
102102

103103
// auto expire?
104-
if(typeof options.expires === "number" && option.expires > 0){
104+
if(typeof options.expires === "number" && options.expires > 0){
105105
setTimeout($.proxy(self.close, self), options.expires);
106106
}
107107
});

src/jquery.notify.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)