X-Git-Url: https://cgit.babelmonkeys.de/?a=blobdiff_plain;f=scripts%2Fclasses.js;h=8832d68cc9d90e795717420d89be115b7d9ae95b;hb=17615ff384777c0fd065dedd248af983db8f9fca;hp=8ada8d8838b14da3da51faed1f57e14ad7518b4e;hpb=694dfd793638d1890731e9f6e67494abdfe176b9;p=socialXMPP.git diff --git a/scripts/classes.js b/scripts/classes.js index 8ada8d8..8832d68 100644 --- a/scripts/classes.js +++ b/scripts/classes.js @@ -6,12 +6,18 @@ Tune = function() { this.title = ''; this.track = 1; this.uri = ''; + this.isEmpty = function() { + return ( (this.artist == '') && (this.length == 0) && (this.rating == 1) + && (this.source == '') && (this.title == '') && (this.track == 1) + && (this.uri == '') ); + } } Buddy = function(name, jid) { this.name = name; this.jid = jid; - this.vCard = ""; + this.vCard = ''; + this.visible = false; // Whether the vCard is currently displayed this.tune = new Tune(); };