[cosmo-dev] Re: [commits-cosmo] (travis) [6250] Bug 11373: Replace
imagegrid.js dojo.io.bind with dojo getText.
Matthew Eernisse
mde at osafoundation.org
Mon Nov 26 11:47:55 PST 2007
Travis,
Just curious -- how is getText cleaner than a sync io.bind call?
IIRC, getText is a private function -- I was under the impression it's
used during bootstrapping when all of dojo isn't available yet.
Looks like in 1.x, it's now explicitly called out as private --
dojo._getText:
http://redesign.dojotoolkit.org/?q=jsdoc/dojo/HEAD/object/dojo._getText
Not that I think it's likely to change (any more) any time soon, but
just curious why we'd be dipping down into private method calls rather
that using a plain io.bind call, if the io module is loaded.
... And of course, now that I look at more docs for 1.x, I see stuff
like this:
dojo.xhrGet(kw); //Servlet get argement with doGet
dojo.xhrPost(kw); //Servlet get argement with doPost
They apparently sucked all the XHR-transport io calls into _base. In the
source there's also a bunch of other method calls like xhrPut,
xhrDelete, etc.
I'm guessing in a 1.x world, we'd just do dojo.xhrGet for imagegrid.js?
Does that sound right?
Matthew
svncheckin at osafoundation.org wrote:
> Revision
> 6250 <http://cvs.osafoundation.org/viewcvs.cgi?rev=6250&view=rev>
> Author
> travis
> Date
> 2007-11-21 10:45:29 -0800 (Wed, 21 Nov 2007)
>
>
> Log Message
>
> Bug 11373 <http://bugzilla.osafoundation.org/show_bug.cgi?id=11373>:
> Replace imagegrid.js dojo.io.bind with dojo getText. This is still
> synchronous, but is cleaner.
>
More information about the cosmo-dev
mailing list