more window.x
This commit is contained in:
parent
37687b5bef
commit
00a3711070
@ -2125,8 +2125,8 @@
|
|||||||
this.status.className = null;
|
this.status.className = null;
|
||||||
break;
|
break;
|
||||||
case 200:
|
case 200:
|
||||||
this.lastModified = this.req.getResponseHeader('Last-Modified');
|
|
||||||
this.parse(JSON.parse(this.req.response).posts);
|
this.parse(JSON.parse(this.req.response).posts);
|
||||||
|
this.lastModified = this.req.getResponseHeader('Last-Modified');
|
||||||
this.set('timer', this.getInterval());
|
this.set('timer', this.getInterval());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2614,11 +2614,14 @@
|
|||||||
},
|
},
|
||||||
initUnitTesting: function() {
|
initUnitTesting: function() {
|
||||||
window.x = {
|
window.x = {
|
||||||
|
Conf: Conf,
|
||||||
|
g: g,
|
||||||
UI: UI,
|
UI: UI,
|
||||||
$: $,
|
$: $,
|
||||||
Board: Board,
|
Board: Board,
|
||||||
Thread: Thread,
|
Thread: Thread,
|
||||||
Post: Post,
|
Post: Post,
|
||||||
|
Clone: Clone,
|
||||||
Main: Main,
|
Main: Main,
|
||||||
Redirect: Redirect,
|
Redirect: Redirect,
|
||||||
Build: Build,
|
Build: Build,
|
||||||
|
|||||||
@ -1228,8 +1228,8 @@ ThreadUpdater =
|
|||||||
@set 'status', null
|
@set 'status', null
|
||||||
@status.className = null
|
@status.className = null
|
||||||
when 200
|
when 200
|
||||||
@lastModified = @req.getResponseHeader 'Last-Modified'
|
|
||||||
@parse JSON.parse(@req.response).posts
|
@parse JSON.parse(@req.response).posts
|
||||||
|
@lastModified = @req.getResponseHeader 'Last-Modified'
|
||||||
@set 'timer', @getInterval()
|
@set 'timer', @getInterval()
|
||||||
else
|
else
|
||||||
@unsuccessfulFetchCount++
|
@unsuccessfulFetchCount++
|
||||||
|
|||||||
@ -291,6 +291,9 @@ Main =
|
|||||||
|
|
||||||
initUnitTesting: ->
|
initUnitTesting: ->
|
||||||
window.x =
|
window.x =
|
||||||
|
# globals.coffee
|
||||||
|
Conf: Conf
|
||||||
|
g: g
|
||||||
# ui.coffee
|
# ui.coffee
|
||||||
UI: UI
|
UI: UI
|
||||||
# $.coffee
|
# $.coffee
|
||||||
@ -299,11 +302,12 @@ Main =
|
|||||||
Board: Board
|
Board: Board
|
||||||
Thread: Thread
|
Thread: Thread
|
||||||
Post: Post
|
Post: Post
|
||||||
|
Clone: Clone
|
||||||
Main: Main
|
Main: Main
|
||||||
# features.coffee
|
# features.coffee
|
||||||
Redirect: Redirect
|
Redirect: Redirect
|
||||||
Build: Build
|
Build: Build
|
||||||
Get: Get
|
Get: Get
|
||||||
Quotify: Quotify
|
Quotify: Quotify
|
||||||
QuoteInline: QuoteInline
|
QuoteInline: QuoteInline
|
||||||
QuotePreview: QuotePreview
|
QuotePreview: QuotePreview
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user