diff options
author | ofshellohicy <ofshellohicy@gmail.com> | 2014-07-18 14:50:32 +0800 |
---|---|---|
committer | ofshellohicy <ofshellohicy@gmail.com> | 2014-07-18 14:50:32 +0800 |
commit | 35d68cc0769f2f3c8fb0d63f85fc780b856a8209 (patch) | |
tree | 33821cc31b3fee53c20edd3da69784beea78d7f6 /static/pastebin.js | |
parent | rst -> txt (diff) | |
download | stackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.tar.gz stackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.tar.bz2 stackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.zip |
remove useless feature
Diffstat (limited to 'static/pastebin.js')
-rw-r--r-- | static/pastebin.js | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/static/pastebin.js b/static/pastebin.js index 8507726..4412595 100644 --- a/static/pastebin.js +++ b/static/pastebin.js @@ -1,11 +1,8 @@ (function() { var global = this; - var jug = new Juggernaut(); - var lib = global.pastebin = { urlRoot : '/', - jug : jug, autoHideFlashes : function() { var flashes = $('p.flash:visible').hide(); @@ -38,19 +35,8 @@ if (reply.author) msg.append($('<span></span>').text(' ' + reply.author)) lib.flash(msg); - }, - - subscribePaste : function(pasteID) { - jug.subscribe('paste-replies:' + pasteID, function(data) { - lib.onNewReply(data, 'paste'); - }); - }, - - subscribeUser : function(userID) { - jug.subscribe('user-replies:' + userID, function(data) { - lib.onNewReply(data, 'user'); - }); } + }; |