fixing bug with structure type property stuff.
This commit is contained in:
parent
d6ce74a273
commit
094ad76f74
|
@ -228,6 +228,9 @@
|
||||||
// given structure property.
|
// given structure property.
|
||||||
var supportsStructureTypeProperty = function(structType, property) {
|
var supportsStructureTypeProperty = function(structType, property) {
|
||||||
var propertiesList = structType.propertiesList;
|
var propertiesList = structType.propertiesList;
|
||||||
|
if (! propertiesList) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
while (propertiesList !== baselib.lists.EMPTY) {
|
while (propertiesList !== baselib.lists.EMPTY) {
|
||||||
if (propertiesList.first.first === property) {
|
if (propertiesList.first.first === property) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -242,6 +245,9 @@
|
||||||
// Returns the binding associated to this particular structure type propery.
|
// Returns the binding associated to this particular structure type propery.
|
||||||
var lookupStructureTypeProperty = function(structType, property) {
|
var lookupStructureTypeProperty = function(structType, property) {
|
||||||
var propertiesList = structType.propertiesList;
|
var propertiesList = structType.propertiesList;
|
||||||
|
if (! propertiesList) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
while (propertiesList !== baselib.lists.EMPTY) {
|
while (propertiesList !== baselib.lists.EMPTY) {
|
||||||
if (propertiesList.first.first === property) {
|
if (propertiesList.first.first === property) {
|
||||||
return propertiesList.first.rest;
|
return propertiesList.first.rest;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user