IE7 fixes

This commit is contained in:
ragaskar
2009-10-15 17:48:28 -07:00
parent 1b1c2b1998
commit 85d3b2d14b
4 changed files with 59 additions and 23 deletions

View File

@@ -56,7 +56,7 @@ jasmine.PrettyPrinter.prototype.format = function(value) {
jasmine.PrettyPrinter.prototype.iterateObject = function(obj, fn) {
for (var property in obj) {
if (property == '__Jasmine_been_here_before__') continue;
fn(property, obj.__lookupGetter__(property) != null);
fn(property, obj.__lookupGetter__ ? (obj.__lookupGetter__(property) != null) : false);
}
};