global clash fix

This commit is contained in:
Jaime Pillora
2013-04-11 17:22:27 +10:00
parent d0f6a85143
commit 54d3e7822c
3 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
/** Notify.js - v0.0.1 - 2013/04/05 /** Notify.js - v0.0.1 - 2013/04/11
* http://notifyjs.com/ * http://notifyjs.com/
* Copyright (c) 2013 Jaime Pillora - MIT * Copyright (c) 2013 Jaime Pillora - MIT
*/ */
@@ -144,8 +144,9 @@ Notification = (function() {
return insertCSS(style); return insertCSS(style);
}; };
Notification.prototype.loadHTML = function(style) { Notification.prototype.loadHTML = function() {
style = this.getStyle(name); var style;
style = this.getStyle();
this.userContainer = $(style.html); this.userContainer = $(style.html);
this.text = this.userContainer.find('[data-notify=text]'); this.text = this.userContainer.find('[data-notify=text]');
if (this.text.length === 0) { if (this.text.length === 0) {
+2 -2
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -217,8 +217,8 @@ class Notification
#insert #insert
insertCSS style insertCSS style
loadHTML: (style) -> loadHTML: ->
style = @getStyle(name) style = @getStyle()
@userContainer = $(style.html) @userContainer = $(style.html)
@text = @userContainer.find '[data-notify=text]' @text = @userContainer.find '[data-notify=text]'
if @text.length is 0 if @text.length is 0