|
@@ -189,7 +189,7 @@ exports.buildToastTemplate = function (options) {
|
|
|
// template with Image
|
|
// template with Image
|
|
|
if (imageNode !== '') {
|
|
if (imageNode !== '') {
|
|
|
templateName = "ToastImageAndText";
|
|
templateName = "ToastImageAndText";
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
imageNode = "";
|
|
imageNode = "";
|
|
|
}
|
|
}
|
|
@@ -390,7 +390,7 @@ exports.fireEvent = function (event, notification) {
|
|
|
args = [event, state];
|
|
args = [event, state];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.isReady) {
|
|
|
|
|
|
|
+ if (this.isReady && plugin) {
|
|
|
plugin.fireEvent.apply(plugin, args);
|
|
plugin.fireEvent.apply(plugin, args);
|
|
|
} else {
|
|
} else {
|
|
|
this.eventQueue.push(args);
|
|
this.eventQueue.push(args);
|