The Console object has a built-in "API", in the form of a "private property", which you can discover by doing this in the javascript Webkit console
> for(o in console) console.dir(o) _commandLineAPI log warn …
_commandLineAPI:
> console.dir(_commandLineAPI) CommandLineAPI $0: "—" $1: "—" $2: "—" $3: "—" $4: "—" $$: bound: function () { $x: bound: function (xpath, context) { clear: bound: function () { copy: bound: function (object) { dir: bound: function () { dirxml: bound: function () { inspect: bound: function (object) { keys: bound: function (object) { monitorEvents: bound: function (object, types) { profile: bound: function () { profileEnd: bound: function () { unmonitorEvents: bound: function (object, types) { values: bound: function (object) { __proto__: CommandLineAPI
arri 15 Jun. '12 at 12:08 2012-06-15 12:08
source share