[Dojo-interest] Unregistering parsed widget
Hans Hohenfeld
derhans at nerdshack.com
Tue Dec 18 18:56:37 UTC 2007
On Tue, Dec 18, 2007 at 01:24:23PM -0500, Drye, Stephen wrote:
> We have the same problem with Menus loaded through contentPane. Since
> there are known cases where that line (manager.js line 14) will always
> fail (ContentPane+Dialogs or Menus), can it be changed to just
> console.log that something happened instead of dying by throwing an
> Error? We've had to make that change ourselves in our local copy of
> Dojo, and it's a pain to maintain since it gets bundled into the
> compressed dijit.js.
>
> Throwing error really means that menus can't be used through
> contentPanes, and we've got cases where trying to manhandle the menu to
> somewhere else in our app so it doesn't need to get loaded by
> ContentPane just doesn't work.
>
> Stephen Drye
> ATG
>
This seems to be a quiet good solution. Wouldn't it be better to just skip
a already parsed widget and just use console.log as suggested by Steven?
regards
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://dojotoolkit.org/pipermail/dojo-interest/attachments/20071218/5c2762f8/attachment.bin
More information about the Dojo-interest
mailing list