mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Avoid call to jQuery.clean by converting HTML to DOM nodes manually instead of using $
This commit is contained in:
parent
5529a0e527
commit
7638375b78
4
vendor/space-pen.coffee
vendored
4
vendor/space-pen.coffee
vendored
@ -52,7 +52,9 @@ class View extends jQuery
|
||||
|
||||
@render: (fn) ->
|
||||
[html, postProcessingSteps] = @buildHtml(fn)
|
||||
fragment = $(html)
|
||||
div = document.createElement('div')
|
||||
div.innerHTML = html
|
||||
fragment = $(div.childNodes)
|
||||
step(fragment) for step in postProcessingSteps
|
||||
fragment
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user