Lines Matching refs:object
465 // grab the event object (IE uses a global event object)
509 Function.prototype.forEach = function(object, block, context) {
510 for (var key in object) {
512 block.call(context, object[key], key, object);
525 var forEach = function(object, block, context) {
526 if (object) {
528 if (object instanceof Function) {
531 } else if (object.forEach instanceof Function) {
532 // the object implements a custom forEach method so use that
533 object.forEach(block, context);
535 } else if (typeof object == "string") {
536 // the object is a string
538 } else if (typeof object.length == "number") {
539 // the object is array-like
542 resolve.forEach(object, block, context);