summaryrefslogtreecommitdiff
path: root/webcards/scripts/client/message.js
diff options
context:
space:
mode:
Diffstat (limited to 'webcards/scripts/client/message.js')
-rw-r--r--webcards/scripts/client/message.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/webcards/scripts/client/message.js b/webcards/scripts/client/message.js
deleted file mode 100644
index 5e821c4..0000000
--- a/webcards/scripts/client/message.js
+++ /dev/null
@@ -1,14 +0,0 @@
-function Message(type, data){
- this.t = type;
- this.d = data;
-}
-
-Message.prototype = {
- stringify: function(){
- var dat = this.d
- if(typeof dat !== "string"){
- dat = JSON.stringify(dat);
- }
- return JSON.stringify({type: this.t, data: dat});
- }
-};