Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Demos and Utils / Re: StartupManager - A PureMVC AS3 Utility on: April 19, 2008, 07:32:16
Hi,

I just wanted to point out a tiny glitch I stumbled upon while going through the source code of the StartupManager utility...

At line 178 of the class StartupMonitorProxy.as, there's the following error-handling statement:

:
if ( proxy == null ) throw Error( proxy.getProxyName() + ISTARTUP_PROXY_MSG );

If ever executed, the preceding code would produce a TypeError: Error #1009, since proxy is not initialized.

The solution would be to replace proxy with r as in the following snippet:

:
if ( proxy == null ) throw Error( r.getProxyName() + ISTARTUP_PROXY_MSG );

This should work fine, as r refers to an instance of StartupResourceProxy that is most certainly instantiated.

Hope this helps.

And thanks for the great framework!
Pages: [1]