When I compile demos/lzpix/app.lzx with profiling on, I get this error in DHTML. It occurs on line 1150 below.

The error reported is
$2_attrs has no properties

This doesn't happen when compiled in non-profile (and non-debug) mode for DHTML

finally {
1132var $3_$lzsc$lzp = global["$lzprofiler"]; if ($3_$lzsc$lzp) {
1133var $4_$lzsc$tick = $3_$lzsc$lzp.tick; var $5_$lzsc$now = (new Date).getTime(); if ($4_$lzsc$tick >= $5_$lzsc$now) {
1134$5_$lzsc$now = $4_$lzsc$tick + 0.01
1136$3_$lzsc$lzp.tick = $5_$lzsc$now; $3_$lzsc$lzp.returns[$5_$lzsc$now] = arguments.callee._dbg_name
1140$lzsc$temp._dbg_name = "Class.__LZcallInherited"; return $lzsc$temp
1141 })(); var LzNode = NewClass.make("LzNode", null, {initialize: (function () {
1142var $lzsc$temp = function ($1_parent, $2_attrs, $3_children, $4_instcall) {
1143try {
1144var $5_$lzsc$lzp = global["$lzprofiler"]; if ($5_$lzsc$lzp) {
1145var $6_$lzsc$tick = $5_$lzsc$lzp.tick; var $7_$lzsc$now = (new Date).getTime(); if ($6_$lzsc$tick >= $7_$lzsc$now) {
1146$7_$lzsc$now = $6_$lzsc$tick + 0.01
1148$5_$lzsc$lzp.tick = $7_$lzsc$now; $5_$lzsc$lzp.calls[$7_$lzsc$now] = arguments.callee._dbg_name
1150this.nextMethod(arguments.callee, "initialize").call(this, $1_parent, $2_attrs, $3_children, $4_instcall); var $8_nm = null; if ( $2_attrs["id"] && $2_attrs.id != this._ignoreAttribute) {
1151$8_nm = "#" + $2_attrs.id
1152} else {
1153if ( $2_attrs["name"] && $2_attrs.name != this._ignoreAttribute) {
1154$8_nm = ($1_parent === canvas ? "#" : ".") + $2_attrs.name
1157 if ($8_nm) {
1158this._profile_name = $8_nm; Profiler.event("start: " + $8_nm); Profiler.event($8_nm, "calls")

--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to