utils.addToScriptHash(options, "onopen", component.getAttributes().get("onopen"), null, ScriptHashVariableWrapper.EVENT_HANDLER);
utils.addToScriptHash(options, "onclose", component.getAttributes().get("onclose"), null, ScriptHashVariableWrapper.EVENT_HANDLER);
if (!options.isEmpty()) {
subMenuFunction.addParameter(options);
}
subMenuFunction.appendScript(buffer);
} else {
buffer.append(".");
JSFunction menuFunction = getMenuScriptFunction(context, component);
Map<String, Object> menuOptions = getMenuOptions(component);
if (!menuOptions.isEmpty()) {