fixed problem with type.properties pointing to non-existing prototypes

This commit is contained in:
stefanp 2002-12-04 09:35:34 +00:00
parent d5add243c7
commit 862cdef847

View file

@ -127,7 +127,9 @@ function typeProperties_macro (param) {
if (arr[i].match (reg)) { if (arr[i].match (reg)) {
// it matched, wrap line in a link to that prototype: // it matched, wrap line in a link to that prototype:
var docProtoObj = this.getApplication ().getPrototype (mappings.getProperty (key)); var docProtoObj = this.getApplication ().getPrototype (mappings.getProperty (key));
if (docProtoObj!=null) {
arr[i] = '<a href="' + docProtoObj.href ("main") + '#typeproperties">' + arr[i] + '</a>'; arr[i] = '<a href="' + docProtoObj.href ("main") + '#typeproperties">' + arr[i] + '</a>';
}
} }
} }
sb.append (arr[i] + "\n"); sb.append (arr[i] + "\n");