sure, but we don't use 'name' in the html, only in the API for
referencing particular resources

for example

k.surfaces["scorebox"] references the scorebox canvas
k.surfaces["timer"] references the timer canvas
k.library.images["ball"] references a  ball image preloaded in the
following code

k.init({ images [ {name:"ball", file:"ball.png"}],
        surfaces[{name:"scorebox", canvas:"scoreboxCanvas"}]
});

On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote:
> Be careful, name is the historical precursor of id and it's valid in
> XHTML Transitional for the same purpose.
> 
> 2009/9/12 Bryan Berry <br...@olenepal.org>:
> > Felipe,
> > I changed id property for images, sounds, and surfaces to name instead.
> > Did this to avoid confusion with an html element's ID attribute.
> >
> > I have changed adding_up to reflect this change
> >
> > --
> > Bryan W. Berry
> > Technology Director
> > OLE Nepal, http://www.olenepal.org
> >
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to