HTML and CSS Reference
In-Depth Information
}
var needsFix = [];
for (i = 0; i < length; i++) {
if (object[properties[i]]) {
needsFix.push(properties[i]);
}
}
return needsFix;
}
var oFixes = unEnumerated({},
["toString", "toLocaleString", "valueOf",
"hasOwnProperty", "isPrototypeOf",
"constructor", "propertyIsEnumerable"]);
var fFixes = unEnumerated(
function () {}, ["call", "apply", "prototype"]);
if (fFixes && oFixes) {
fFixes = oFixes.concat(fFixes);
}
var needsFix = { "object": oFixes, "function": fFixes };
return function (object, callback) {
if (typeof callback != "function") {
throw new TypeError("callback is not a function");
}
// Normal loop, should expose all enumerable properties
// in conforming browsers
for (var prop in object) {
if (tddjs.isOwnProperty(object, prop)) {
callback(prop, object[prop]);
}
}
// Loop additional properties in non-conforming browsers
var fixes = needsFix[typeof object];
if (fixes) {
var property;
Search WWH ::




Custom Search