more window.x

This commit is contained in:
Nicolas Stepien 2012-10-25 11:35:40 +02:00
parent 37687b5bef
commit 00a3711070
3 changed files with 10 additions and 3 deletions

View File

@ -2125,8 +2125,8 @@
this.status.className = null;
break;
case 200:
this.lastModified = this.req.getResponseHeader('Last-Modified');
this.parse(JSON.parse(this.req.response).posts);
this.lastModified = this.req.getResponseHeader('Last-Modified');
this.set('timer', this.getInterval());
break;
default:
@ -2614,11 +2614,14 @@
},
initUnitTesting: function() {
window.x = {
Conf: Conf,
g: g,
UI: UI,
$: $,
Board: Board,
Thread: Thread,
Post: Post,
Clone: Clone,
Main: Main,
Redirect: Redirect,
Build: Build,

View File

@ -1228,8 +1228,8 @@ ThreadUpdater =
@set 'status', null
@status.className = null
when 200
@lastModified = @req.getResponseHeader 'Last-Modified'
@parse JSON.parse(@req.response).posts
@lastModified = @req.getResponseHeader 'Last-Modified'
@set 'timer', @getInterval()
else
@unsuccessfulFetchCount++

View File

@ -291,6 +291,9 @@ Main =
initUnitTesting: ->
window.x =
# globals.coffee
Conf: Conf
g: g
# ui.coffee
UI: UI
# $.coffee
@ -299,11 +302,12 @@ Main =
Board: Board
Thread: Thread
Post: Post
Clone: Clone
Main: Main
# features.coffee
Redirect: Redirect
Build: Build
Get: Get
Get: Get
Quotify: Quotify
QuoteInline: QuoteInline
QuotePreview: QuotePreview