reciprocity/ggrc-core — pull request #682 by bmomberger-reciprocity (2013-12-03 05:10:56+00:00)
Title: Re-fix defer_render, still avoiding live-bind and double-render bugs

The fix I made to defer_render to avoid the problem with multiple attributes in a mustache block being set (i.e. disabled="true" readonly="true") was not a good fix; only one element in the set of added live-bound element *wasn't* double rendered. So I am doing nodeList.replace with the whole set again, but this caused the aforementioned issue with the attributes. The happy medium workaround, for now, is to not wrap multiple attributes in a single deferred mustache block, and to inform nodeList.replace of all live bound elements you're adding. I simplified the case where this was necessary (requests/tree.mustache) a little bit as well.