// Work around an IE7 bug,
// http://code.google.com/p/google-web-toolkit/issues/detail?id=1440
// note, JsIEBlockTextTransformer now handles restructuring top level
// blocks, this class now handles non-top level blocks only.
SelectionProperty userAgentProperty = null;
for (PropertyOracle oracle : propertyOracles) {
userAgentProperty = oracle.getSelectionProperty(logger, "user.agent");
if (userAgentProperty != null) {
break;
}
}
// if user agent is known or ie6, split overly large blocks
boolean splitBlocks = userAgentProperty == null
|| (userAgentProperty != null && "ie6".equals(userAgentProperty.getCurrentValue()));
if (splitBlocks) {
JsIEBlockSizeVisitor.exec(jsProgram);
}
JsBreakUpLargeVarStatements.exec(jsProgram, propertyOracles);