Previously, SafeHtmlMaker declared vars in one block, and assumed they
were visible in other blocks.
This fixes that in preparation for modular decomposition in CL 207079.
The extra var declarations can probably be optimized out in later
stages -- e.g. the repeated el___ and emitter___ declarations can be
optimized as in CL 214052.
Submitted @4009
LGTM http://codereview.appspot.com/224059/diff/1013/1018 File tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js (right): http://codereview.appspot.com/224059/diff/1013/1018#newcode1 tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js:1: function module() { Note: Because of all of ...
16 years, 1 month ago
(2010-03-09 02:02:32 UTC)
#6
LGTM
http://codereview.appspot.com/224059/diff/1013/1018
File tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js
(right):
http://codereview.appspot.com/224059/diff/1013/1018#newcode1
tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js:1:
function module() {
Note: Because of all of these functions named "module" this file appears to be
semantically incorrect javascript file but only because its the render of an
intermediate stage.
Issue 224059: Change SafeHtmlMaker to declare variables per module
(Closed)
Created 16 years, 1 month ago by MikeSamuel
Modified 16 years, 1 month ago
Reviewers: Jasvir
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 3