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/
* Copyright (c) 2013 Jaime Pillora - MIT
*/
@@ -144,8 +144,9 @@ Notification = (function() {
return insertCSS(style);
};
Notification.prototype.loadHTML = function(style) {
style = this.getStyle(name);
Notification.prototype.loadHTML = function() {
var style;
style = this.getStyle();
this.userContainer = $(style.html);
this.text = this.userContainer.find('[data-notify=text]');
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
insertCSS style
loadHTML: (style) ->
style = @getStyle(name)
loadHTML: ->
style = @getStyle()
@userContainer = $(style.html)
@text = @userContainer.find '[data-notify=text]'
if @text.length is 0