From cbe8f1db492cb5569c76253d5ae633bc00a2194b Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 14 Jun 2012 16:44:50 +0200 Subject: [PATCH] Ox.identify: update examples --- source/Ox/js/JavaScript.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index ac7c998a..54c9e7af 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -475,14 +475,20 @@ Ox.doc = (function() { /*@ Ox.identify Returns the type of a JavaScript identifier (string) -> Type - Type can be `constant`, `identifier`, `keyword`, `method`, `object` or - `property`. + Type can be `'constant'`, `'identifier'`, `'keyword'`, `'method'`, + `'object'` or `'property'`. + > Ox.idenfify('PI') + 'constant' > Ox.identify('foo') 'identifier' - > Ox.identify('break') + > Ox.identify('for') 'keyword' + > Ox.identify('forEach') + 'method' > Ox.identify('window') 'object' + > Ox.identify('prototype') + 'property' @*/ Ox.identify = (function() { // see https://developer.mozilla.org/en/JavaScript/Reference