I think basecomponent defines the _enabled attribute

On 9/25/06, P T Withington <[EMAIL PROTECTED]> wrote:
> What is happening here is that infopanel has a constraint that
> depends on the _enabled of an object that has not yet been
> instantiated, so when the constraint tries to register on whatever
> that dependent is, it's not there.  There are a few of these in the
> system.  How can it work?  Well constraints are very conservative, it
> is very possible that the constraint does not actually depend on this
> non-existent thing after all...  Sad but true.
>
> I can't find the use of _enabled anywhere, perhaps my sources are stale.
>
> On 2006-09-25, at 13:24 EDT, Benjamin Shine wrote:
>
> >
> > Mostly a question for Henry and Max, but anyone for whom this looks
> > familiar is invited to jump in.
> >
> > Firefox 1.5.07, intel mac os x 10.4.7
> >
> > Unzip the attached zip into legals/demos/calendar-work, enable
> > backtraces in the compiler,
> > then run
> > http://localhost:8080/legals/demos/calendar-work/calendar.lzx?
> > lzr=dhtml&debug=true
> >
> > On startup, the last line in the debugger is
> > ERROR: No eventSender (null) for on_enabled
> > Click on the ERROR, and you get a backtrace; click on the
> > backtrace, and you get this:
> >
> > lzx> Debug.inspect(«LzBacktrace(23)#14| LzError <- Function....»)
> > «LzBacktrace(23)#14| LzError <- Function.make <-
> > LzSourceMessage.format <- Debug.warnInternal» {
> > length: 23
> > 0: «__LzStackFrame#34| Error: [Exception... "Illegal operation on
> > WrappedNative prototype object" nsresult: "0x8057000c
> > (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://
> > localhost:8080/legals/demos/calendar-work/calendar.lzx?lzt=lfc&lz...»
> > 1: «__LzStackFrame#37| Error: [Exception... "Illegal operation on
> > WrappedNative prototype object" nsresult: "0x8057000c
> > (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://
> > localhost:8080/legals/demos/calendar-work/calendar.lzx?lzt=lfc&lz...»
> > 2: «__LzStackFrame#41| «Function(1)#30|
> > LzEvent.prototype.sendEvent».apply(#LzIdle.onidle, [888])»
> > 3: «__LzStackFrame#44| «Function(0)#29|
> > LzInstantiatorClass.prototype.checkQ».apply(#LzInstantiator, [888])»
> > 4: «__LzStackFrame#46| Error: [Exception... "Illegal operation on
> > WrappedNative prototype object" nsresult: "0x8057000c
> > (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://
> > localhost:8080/legals/demos/calendar-work/calendar.lzx?lzt=lfc&lz...»
> > 5: «__LzStackFrame#48| Error: [Exception... "Illegal operation on
> > WrappedNative prototype object" nsresult: "0x8057000c
> > (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://
> > localhost:8080/legals/demos/calendar-work/calendar.lzx?lzt=lfc&lz...»
> > 6: «__LzStackFrame#50| «Function(1)#30|
> > LzEvent.prototype.sendEvent».apply(#LzIdle.onidle, [9095])»
> > 7: «__LzStackFrame#52| «Function(0)#29|
> > LzInstantiatorClass.prototype.checkQ».apply(#LzInstantiator, [9095])»
> > 8: «__LzStackFrame#54| «Function(2)#28|
> > LzInstantiatorClass.prototype.makeSomeViews».apply(#LzInstantiator,
> > [, 10])»
> > 9: «__LzStackFrame#57| «Function(0)#27|
> > LzView.prototype.__LZinstantiationDone».apply(#infopanel, [])»
> > 10: «__LzStackFrame#59| «Function(0)#26|
> > LzNode.prototype.__LZinstantiationDone».apply(#infopanel, [])»
> > 11: «__LzStackFrame#61| «Function(0)#25|
> > LzNode.prototype.__LZcallInit».apply(#infopanel, [])»
> > 12: «__LzStackFrame#64| «Function(0)#25|
> > LzNode.prototype.__LZcallInit».apply(«LzView#62| .contents», [])»
> > 13: «__LzStackFrame#67| «Function(0)#25|
> > LzNode.prototype.__LZcallInit».apply(«basetabslider#65| .tabs», [])»
> > 14: «__LzStackFrame#69| «Function(0)#24|
> > LzNode.prototype.__LZresolveReferences».apply
> > («basetabslider#65| .tabs», [])»
> > 15: «__LzStackFrame#71| «Function(1)#23|
> > LzNode.prototype.__LZresolveRefs».apply(«basetabslider#65| .tabs»,
> > [[object Object]])»
> > 16: «__LzStackFrame#73| «Function(3)#22|
> > LzNode.prototype.applyConstraint».apply(«basetabslider#65| .tabs»,
> > «Array(3)#72| [_enabled, function () {\n try {\n var $1_$lzsc$s =
> > Debug.backtraceStack;\n if ($1_$lzsc$s) {\n var $2_...»
> > 17: «__LzStackFrame#76| «Function(2)#21|
> > LzDelegate.prototype.register».apply(«LzDelegate#74|
> > «basetabslider#65| .tabs».$cf3()», [null, on_enabled])»
> > 18: «__LzStackFrame#79| «Function(2)#20| Debug.error».apply
> > («Object#77| Debug», [No eventSender (%w) for %s, null, on_enabled])»
> > 19: «__LzStackFrame#81| «Function(3)#19| Debug.warnInternal».apply
> > («Object#77| Debug», «Array(4)#80| [function ($1_file, $2_line,
> > $3_message) {\n try {\n var $4_$lzsc$s = Debug.backtraceStack;\n if
> > ($4_$lzsc$s) {\n var $5_$lz...»
> > 20: «__LzStackFrame#83| «Function(4)#18|
> > LzSourceMessage.format».apply(«Function(3)#16| LzError», [null,
> > null, No eventSender (%w) for %s, null, on_enabled])»
> > 21: «__LzStackFrame#85| «Function(0)#17|
> > Function.prototype.make».apply(«Function(3)#16| LzError», [null,
> > null, No eventSender (null) for on_enabled])»
> > 22: «__LzStackFrame#87| «Function(3)#16| LzError».apply
> > («LzError#13| ERROR: No eventSender (null) for on_enabled», [null,
> > null, No eventSender (null) for on_enabled])»
> > }
> > «LzBacktrace(23)#14| LzError <- Function.make <-
> > LzSourceMessage.format <- Debug.warnInternal»
> > lzx>
> >
> > _______________________________________________
> > Laszlo-dev mailing list
> > [email protected]
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]


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

Reply via email to