getObjectMemebers -> getObjectMembers

This commit is contained in:
Kevin Sawicki 2016-03-04 15:57:21 -08:00
parent 3230927f10
commit fe9e026f9e

View file

@ -16,7 +16,7 @@ const FUNCTION_PROPERTIES = [
let rendererFunctions = {}; let rendererFunctions = {};
// Return the description of object's members: // Return the description of object's members:
let getObjectMemebers = function(object) { let getObjectMembers = function(object) {
let names = Object.getOwnPropertyNames(object); let names = Object.getOwnPropertyNames(object);
// For Function, we should not override following properties even though they // For Function, we should not override following properties even though they
// are "own" properties. // are "own" properties.
@ -46,7 +46,7 @@ let getObjectPrototype = function(object) {
if (proto === null || proto === Object.prototype) if (proto === null || proto === Object.prototype)
return null; return null;
return { return {
members: getObjectMemebers(proto), members: getObjectMembers(proto),
proto: getObjectPrototype(proto), proto: getObjectPrototype(proto),
}; };
}; };
@ -101,7 +101,7 @@ var valueToMeta = function(sender, value, optimizeSimpleObject) {
// passed to renderer we would assume the renderer keeps a reference of // passed to renderer we would assume the renderer keeps a reference of
// it. // it.
meta.id = objectsRegistry.add(sender, value); meta.id = objectsRegistry.add(sender, value);
meta.members = getObjectMemebers(value); meta.members = getObjectMembers(value);
meta.proto = getObjectPrototype(value); meta.proto = getObjectPrototype(value);
} else if (meta.type === 'buffer') { } else if (meta.type === 'buffer') {
meta.value = Array.prototype.slice.call(value, 0); meta.value = Array.prototype.slice.call(value, 0);