Avoid call to jQuery.clean by converting HTML to DOM nodes manually instead of using $

This commit is contained in:
Nathan Sobo 2012-03-12 19:14:36 -06:00
parent 5529a0e527
commit 7638375b78

View File

@ -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