Right, maybe it's working too much with Ext, and having singletons for this kind of stuff, like Ext.DomHelper.
I would "expect" Format.XML to be a singleton as well. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Christopher Schmidt <[EMAIL PROTECTED]> Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]> Cc: [email protected] Onderwerp: Re: [OpenLayers-Users] Format.XML write and IE Datum: 24/01/08 10:46 > On Thu, Jan 24, 2008 at 10:27:30AM +0100, Bart van den Eijnden (OSGIS) wrote: > > It was my own stupid mistake, I was using: > > > > var boundingFeature = OpenLayers.Format.XML.prototype.write(stChild); > > > > where I should have used: > > > > var xml = new OpenLayers.Format.XML(); > > var boundingFeature = xml.write(stChild); > > Was this as the result of documentation somewhere? Copy paste? It's not > the first time I've seen it happen, and I'd like to know why people do > it, if we can. > > As a rule, if you're not working on the code in lib/, you shoudl never > have a '.prototype.' in your code. (I think.) > > Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
