]> cgit.babelmonkeys.de Git - socialXMPP.git/blobdiff - scripts/classes.js
Message sending
[socialXMPP.git] / scripts / classes.js
index c991a8af77d0d89cd16364508e8eea226daa5db3..62d962f760f1ce37ad3c040a760e754cfef6ba11 100644 (file)
@@ -6,6 +6,11 @@ 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) {