1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.Inspector.prototype.render
()
</tt></big><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in helmaTools.zip/Global/helma.Inspector.js:
90 <pre><font color=
"#aaaaaa">62:
</font> this.render = function() {
91 <font color=
"#aaaaaa">63:
</font> for (var i in hopObj) {
92 <font color=
"#aaaaaa">64:
</font> var obj = {
93 <font color=
"#aaaaaa">65:
</font> key: i,
94 <font color=
"#aaaaaa">66:
</font> value: hopObj[i]
95 <font color=
"#aaaaaa">67:
</font> };
96 <font color=
"#aaaaaa">68:
</font> if (hopObj[i]) {
97 <font color=
"#aaaaaa">69:
</font> if (obj.value._prototype
&&
98 <font color=
"#aaaaaa">70:
</font> obj.value._prototype ==
<font color=
"#9999aa">"HopObject
"</font>)
99 <font color=
"#aaaaaa">71:
</font> collections.push(obj);
100 <font color=
"#aaaaaa">72:
</font> else
101 <font color=
"#aaaaaa">73:
</font> properties.push(obj);
102 <font color=
"#aaaaaa">74:
</font> }
103 <font color=
"#aaaaaa">75:
</font> }
104 <font color=
"#aaaaaa">76:
</font> properties.sort(keySorter);
105 <font color=
"#aaaaaa">77:
</font> collections.sort(keySorter);
106 <font color=
"#aaaaaa">78:
</font>
107 <font color=
"#aaaaaa">79:
</font> var n = hopObj.size();
108 <font color=
"#aaaaaa">80:
</font> for (var i=
0; i
<n; i++) {
109 <font color=
"#aaaaaa">81:
</font> var h = hopObj.get(i);
110 <font color=
"#aaaaaa">82:
</font> var obj = {
111 <font color=
"#aaaaaa">83:
</font> key: i,
112 <font color=
"#aaaaaa">84:
</font> value: h,
113 <font color=
"#aaaaaa">85:
</font> id: h._id
114 <font color=
"#aaaaaa">86:
</font> };
115 <font color=
"#aaaaaa">87:
</font> children.push(obj);
116 <font color=
"#aaaaaa">88:
</font> }
117 <font color=
"#aaaaaa">89:
</font> children.sort(idSorter);
118 <font color=
"#aaaaaa">90:
</font>
119 <font color=
"#aaaaaa">91:
</font> res.handlers.inspector = this;
120 <font color=
"#aaaaaa">92:
</font> renderSkin(
<font color=
"#9999aa">"helma.Inspector.main
"</font>);
121 <font color=
"#aaaaaa">93:
</font> return;
122 <font color=
"#aaaaaa">94:
</font> }