[Helma-user] accessing type.properties
Breton Slivka
zen at zenpsycho.com
Thu Jul 3 03:49:08 CEST 2008
Out of curiosity, why do you need them in the original order?
On Thu, Jul 3, 2008 at 3:17 AM, Joshua Paine <joshua at papercrown.org> wrote:
> You can get all your object's type's properties like this:
>
> function getTypeProperties(){
> var hash = {}, name, names, props;
> props = app.getPrototype(this._prototype.toString())
> .getTypeProperties();
> names = props.propertyNames();
> while(names.hasNext() && (name = names.next()))
> hash[name] = props.getProperty(name);
> return hash;
> }
>
> Unfortunately the original getTypeProperties returns a hash-like
> structure, so as far as I can tell there's no way to get them in order.
> Does anyone know if there is a way to get the types properties in their
> original order without reading the file?
>
>
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
More information about the Helma-user
mailing list