2008年12月30日星期二

Re: [fw-mvc] Can't manipulate the Dojo addOnLoad queue

Drew Bertola wrote:
> I can work around this with:
>
> $view->dojo()->addJavascript("dojo.addOnLoad(function(){my.whatever.someFunc();});");
>

I've now refined this to:

->addJavascript('dojo.addOnLoad(my.init);')

Which is slightly better... but still feels clumsy.

--
Drew Bertola

-------------------------------------------------
* PHP/LAMP Consultant, ZCE-1000 *
* *
* Tel: 408-966-6671 *
* *
* current resume: *
* http://drewb.com/blog/about/resume/ *
-------------------------------------------------

没有评论: