Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a typo in the function creation.

  • Loading branch information...
commit 6e5b3be188e9415522eb9f78debef26af40dccf9 1 parent de012d8
@creationix authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/proto.js
View
6 lib/proto.js
@@ -3,7 +3,7 @@ var proto = Object.prototype;
// Implements a forEach much like the one for Array.prototype.forEach, but for
// any object.
if (typeof proto.forEach !== 'function') {
- Object.defineProperty(proto, "forEach", {enumarable: false, value: function (callback, thisObject) {
+ Object.defineProperty(proto, "forEach", {value: function (callback, thisObject) {
var keys = Object.keys(this);
var length = keys.length;
for (var i = 0; i < length; i++){
@@ -16,7 +16,7 @@ if (typeof proto.forEach !== 'function') {
// Implements a map much like the one for Array.prototype.map, but for any
// object. Returns an array, not a generic object.
if (typeof proto.map !== 'function') {
- Object.defineProperty(proto, "map", {enumarable: false, value: function (callback, thisObject) {
+ Object.defineProperty(proto, "map", {value: function (callback, thisObject) {
var accum = [];
var keys = Object.keys(this);
var length = keys.length;
@@ -30,7 +30,7 @@ if (typeof proto.map !== 'function') {
// Implements a shallow copy onto the current object.
if (typeof proto.mixin !== 'function') {
- Object.defineProperty(proto, "mixin", {enumarable: false, value: function (obj) {
+ Object.defineProperty(proto, "mixin", {value: function (obj) {
var keys = Object.keys(obj);
var length = keys.length;
for (var i = 0; i < length; i++){

0 comments on commit 6e5b3be

Please sign in to comment.
Something went wrong with that request. Please try again.