having made bunch of general javascripts amd compatible, i'm running errors blocking progress:
- typeerror: registry.byid(...) undefined
- typeerror: _3ff null (also _3f9)
tracing error "registry.byid()" leads domconstruct.place(...), , errors "_3ff null" seems point line "domconstruct.place(content, dom.byid($parent));" suggesting id required isn't available.... although modules including "dojo/domready!".
'dojo/dom-construct' listed dependency of module, , domconstruct variable has been created.
as example, 1 of starting points kind of error <td>
:
content += '<td valign="middle" nowrap="nowrap" id="somethingblahmessages">'; // calls function in module <div> created , filled // see below settimeout(require('js/somethingmessages').somethingmessagesinit(), 1); content += '</td>'; // function module create div , fill data var content = ''; content += '<div id="somethingmessages"></div>'; domconstruct.place(content, dom.byid('somethingblahmessages')); // fetch data, functions down line use domconstruct.place/empty somethingmessagestimer = settimeout(that.somethingmessagesget(), 1);
the content ought added td#somethingblahmessages isn't getting there. parsing issue?
this used work fine non-amd way, i'm suspicious it's red-herring, , real error cunningly disguised under branches , twigs , i've walked right past it....
edit: tried converting 1 of scripts amd module, , in doing fails "_3f9 null" typeerror when encounters domconstruct.place (the stack trace ends @ place function).
Comments
Post a Comment