 PREFIX = "amck"
 
 
+class Ajax
+  csrf_token: ->
+    
+
+  post: (url) ->
+
 class Repo
-  constructor: (@name) ->
+  constructor: (@name, @is_watched) ->
 
   key: ->
     PREFIX + @name

    val.join " "

  unpack: (val) ->
    if val? and val isnt "" then val.split(/\s+/) else []

  get: ->
    @unpack(localStorage.getItem(@key()))



if $(".repohead").length
  name = $(".js-current-repository").attr("href")
  is_watched = $(".watch-button-container").hasClass("on")
  repo = new Repo name, is_watched

  notifications = new Notifications repo, document
  notifications.inject();
