rem:  var renderMacroList = function(proto) { var macrolist = app.data.macros[proto] var handler = ""; if (proto != "global") handler = proto + "."; for (var i in macrolist) { var macro = macrolist[i]; res.push(); res.encode("<% "); res.write(handler); res.write(macro.name); res.encode(" %>"); var str = res.pop(); res.write(param.itemprefix); if (macro.storyid > 0) Html.link({href: HELP.macros._url + macro.storyid}, str); else res.write(str); res.write(param.itemsuffix); } return; }  renderMacroList(param.proto); 
add: this.renderMacroList(param); 
context: function macros_macro(param) {   if (!param.proto) {      if (!req.data.key)         return;      var parts = req.data.key.split(".");      param.proto = parts[0];   }   if (!param.itemprefix)      param.itemprefix = "";   if (!param.itemsuffix)      param.itemsuffix = "<br />";   var renderMacroList = function(proto) {      var macrolist = app.data.macros[proto]      var handler = "";      if (proto != "global")         handler = proto + ".";      for (var i in macrolist) {         var macro = macrolist[i];         res.push();         res.encode("<% ");         res.write(handler);         res.write(macro.name);         res.encode(" %>");         var str = res.pop();         res.write(param.itemprefix);         if (macro.storyid > 0)            Html.link({href: HELP.macros._url + macro.storyid}, str);         else            res.write(str);         res.write(param.itemsuffix);      }      return;   }   renderMacroList(param.proto);   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/6e432aa5439de9c339f5941b6f11343e45941e0c/macros.js/clean/code/SkinMgr/macros.js