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