aboutsummaryrefslogtreecommitdiff
path: root/assets/javascript/github-0.0.1.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascript/github-0.0.1.min.js')
-rw-r--r--assets/javascript/github-0.0.1.min.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/assets/javascript/github-0.0.1.min.js b/assets/javascript/github-0.0.1.min.js
deleted file mode 100644
index f71ac22..0000000
--- a/assets/javascript/github-0.0.1.min.js
+++ /dev/null
@@ -1 +0,0 @@
-var Github=function(t){"use strict";return t.addComment=function r(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"document",e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},n=$("#template").html(),u=new Date(e.updated_at),a=doT.template(n);$(t).append(a({avatar:e.user.avatar_url,content:e.body_html,date:u.toDateString(),url:e.user.html_url,user:e.user.login}))},t.getComments=function a(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"",e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:0,n=arguments[2],u=$.ajax({url:"https://api.github.com/repos/"+t+"/issues/"+e+"/comments",headers:{Accept:"application/vnd.github.v3.html+json"},dataType:"json"});u.fail(function(t,e){return n(e,null)}),u.done(function(t){return n(null,t)})},t}({});