History

Avoid double element look-up

Thibaut committed 11 years ago

Commit 83681cb1 parent 39e01bf1 file · +3 −2Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/views/content/offline_page.coffee+3−2
@@ -65,8 +65,9 @@ class app.views.OfflinePage extends app.View · 64 unmodified lines
65 return unless @activated65 return unless @activated
66 doc.getInstallStatus (status) =>66 doc.getInstallStatus (status) =>
67 return unless @activated67 return unless @activated
68 @docEl(doc).outerHTML = @renderDoc(doc, status)68 el = @docEl(doc)
69 $.highlight @docEl(doc), className: '_highlight'69 el.outerHTML = @renderDoc(doc, status)
70 $.highlight el, className: '_highlight'
70 @refreshLinks()71 @refreshLinks()
71 return72 return
72 return73 return