Hi group,
Thanks for pushing the console code and improving it!
Adam and Karl asked:
How've you done the ok function?
Is that a piece of js somewhere?
Wow! First of all, I don't undderstand that javascript at all,
but I see that it works, so on we go.
Yes, I didn't write that, it's on MDN here,
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
I brought it in without totally understanding it, but I know one
distinction that they talk about is whether you want to
echo all the methods just on the thing being passed in,
or also on its prototype.
While we're on the subject of what in the world is the
Object.keys code doing, there's another distinction which
may come up some day. "IsEnumerable" is used in the
function.
Objects can have properties like enumerable,
configurable and writeable.
It has to do with a permissions idea - I think.
If an object's enumerable is false, I think ok
would return nothing, or is supposed to.
I think it's something to do with protecting
the inaccessibility of private methods.
Kevin
--------
Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev