kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Properties with multiple digits don't work in 1.0 #269

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a schema like this:
{"id":"mukatron",
"extends":{"$ref":"Versioned"},
"prototype":{
},
"properties":{
    "name":{
        "optional":true,
        "type":"string"
    },
    "b8te":{
        "optional":true,
        "type":"string"
    },
    "street1":{
        "optional":true,
        "type":"string"
    },
    "street12":{
        "optional":true,
        "type":"string"
    }
}
}
2. Create an instance or two
3. Try to search for and return properties like b8te or street12
4. It comes back with the correct number of items in the array {}&[undefined, 
undefined], but 
undefined instead of the actual values.

What is the expected output? What do you see instead?

It should return an array of actual values, not undefined.

What version of the product are you using? On what operating system?
1.0, OS X.

Please provide any additional information below.

Original issue reported on code.google.com by irjud...@gmail.com on 11 May 2010 at 1:49