Fixes #604.
Unified · Split
| @@ -89,8 +89,8 @@ class app.views.EntryPage extends app.View · 88 unmodified lines | ||
| 89 | 89 | @entry.doc.fullName + if @entry.isIndex() then ' documentation' else " / #{@entry.name}" |
| 90 | 90 | |
| 91 | 91 | beforeRoute: => |
| 92 | − @abort() | |
| 93 | 92 | @cache() |
| 93 | + @abort() | |
| 94 | 94 | return |
| 95 | 95 | |
| 96 | 96 | onRoute: (context) -> |
| @@ -107,7 +107,7 @@ class app.views.EntryPage extends app.View · 10 unmodified lines | ||
| 107 | 107 | abort: -> |
| 108 | 108 | if @xhr |
| 109 | 109 | @xhr.abort() |
| 110 | − @xhr = null | |
| 110 | + @xhr = @entry = null | |
| 111 | 111 | return |
| 112 | 112 | |
| 113 | 113 | onSuccess: (response) => |
| @@ -125,7 +125,7 @@ class app.views.EntryPage extends app.View · 11 unmodified lines | ||
| 125 | 125 | return |
| 126 | 126 | |
| 127 | 127 | cache: -> |
| 128 | − return if not @entry or @cacheMap[path = @entry.filePath()] | |
| 128 | + return if @xhr or not @entry or @cacheMap[path = @entry.filePath()] | |
| 129 | 129 | |
| 130 | 130 | @cacheMap[path] = @el.innerHTML |
| 131 | 131 | @cacheStack.push(path) |
| @@ -46,7 +46,7 @@ class app.views.Results extends app.View · 45 unmodified lines | ||
| 46 | 46 | return |
| 47 | 47 | |
| 48 | 48 | openFirst: -> |
| 49 | − setTimeout (=> @el.firstElementChild?.click()), 0 | |
| 49 | + @el.firstElementChild?.click() | |
| 50 | 50 | return |
| 51 | 51 | |
| 52 | 52 | onDocEnabled: (doc) -> |