remove remnants of CachedTitles

This commit is contained in:
ccd0 2014-08-24 10:29:20 -07:00
parent 6abbbf00e2
commit e252903b7d
2 changed files with 5 additions and 10 deletions

View File

@ -34,7 +34,6 @@ Main =
for db in DataBoard.keys
Conf[db] = boards: {}
Conf['selectedArchives'] = {}
Conf['CachedTitles'] = []
$.get Conf, (items) ->
$.extend Conf, items
Main.initFeatures()

View File

@ -168,15 +168,11 @@ Linkify =
title: (data) ->
[key, uid, options, link, post] = data
return unless service = Linkify.types[key].title
titles = Conf['CachedTitles']
if title = titles[uid]
link.textContent = title[0]
else
try
$.cache service.api(uid), (-> Linkify.cb.title @, data), responseType: 'json'
catch err
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
return
try
$.cache service.api(uid), (-> Linkify.cb.title @, data), responseType: 'json'
catch err
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
return
cb:
toggle: (e) ->