updated external library registrations.

This commit is contained in:
kay.one
2013-02-14 19:10:03 -08:00
parent c01f982698
commit 258977f262
7 changed files with 76 additions and 76 deletions
@@ -1,16 +1,21 @@
define(['app'], function () {
NzbDrone.Shared.NotificationModel = Backbone.Model.extend({
mutators: {
pre: function () {
if (this.get('message')) {
return this.get('message').lines().lenght > 1;
mutators:{
pre:function () {
try {
if (this.get('message')) {
return this.get('message').lines().lenght > 1;
}
} catch (error) {
return false;
}
},
iconClass: function () {
iconClass:function () {
if (this.has('icon')) {
return "icon";
return 'icon';
}
if (this.get('level') === 'info') {
@@ -25,10 +30,10 @@
}
},
defaults: {
"level": "info",
"title": "",
"message": "",
defaults:{
"level":'info',
"title":'',
"message":''
}
});
});