Skip to content

Commit 83681cb

Browse files
committed
Avoid double element look-up
1 parent 39e01bf commit 83681cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎assets/javascripts/views/content/offline_page.coffee‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ class app.views.OfflinePage extends app.View
6565
return unless @activated
6666
doc.getInstallStatus (status) =>
6767
return unless @activated
68-
@docEl(doc).outerHTML = @renderDoc(doc, status)
69-
$.highlight @docEl(doc), className: '_highlight'
68+
el = @docEl(doc)
69+
el.outerHTML = @renderDoc(doc, status)
70+
$.highlight el, className: '_highlight'
7071
@refreshLinks()
7172
return
7273
return

0 commit comments

Comments
 (0)