comparison types.js @ 102:92ff9630897a

Remove explicit calls to lazyinit that were no longer necessary.
author Mike Pavone <pavone@retrodev.com>
date Thu, 09 Aug 2012 19:11:42 -0700
parents 5d15b91e738a
children 182c311a9fed
comparison
equal deleted inserted replaced
101:5d15b91e738a 102:92ff9630897a
54 }; 54 };
55 55
56 objecttype.prototype.satisfiedBy = function(type) { 56 objecttype.prototype.satisfiedBy = function(type) {
57 if (type.id in this.satisfies_cache) { 57 if (type.id in this.satisfies_cache) {
58 return this.satisfies_cache[type.id]; 58 return this.satisfies_cache[type.id];
59 }
60 if (type.lazyinit) {
61 type.lazyinit();
62 } 59 }
63 //temporarily set cache entry to true to prevent infinite recursion 60 //temporarily set cache entry to true to prevent infinite recursion
64 this.satisfies_cache[type.id] = true; 61 this.satisfies_cache[type.id] = true;
65 var ret = true; 62 var ret = true;
66 if (type.messages === undefined) { 63 if (type.messages === undefined) {
146 }; 143 };
147 144
148 lambdatype.prototype.satisfiedBy = function(type) { 145 lambdatype.prototype.satisfiedBy = function(type) {
149 if (type.id in this.satisfies_cache) { 146 if (type.id in this.satisfies_cache) {
150 return this.satisfies_cache[type.id]; 147 return this.satisfies_cache[type.id];
151 }
152 if (type.lazyinit) {
153 type.lazyinit();
154 } 148 }
155 //temporarily set cache entry to true to prevent infinite recursion 149 //temporarily set cache entry to true to prevent infinite recursion
156 this.satisfies_cache[type.id] = true; 150 this.satisfies_cache[type.id] = true;
157 var ret = true; 151 var ret = true;
158 if (!(type.callable) || this.params.length != type.params.length) { 152 if (!(type.callable) || this.params.length != type.params.length) {