From 569d1e3f2125d935e9e40375ae207646729294bd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 15 Apr 2020 00:01:37 +0300 Subject: [PATCH] docs and some cleanup... Signed-off-by: Alex A. Naanou --- object.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/object.js b/object.js index 128690e..05d0b78 100755 --- a/object.js +++ b/object.js @@ -65,6 +65,10 @@ function(method, name, that){ // Get a list of prototypes that have a prop/attr defined ... // +// defines(obj, name) +// defines(obj, name, callback) +// -> list +// // XXX revise name... var defines = module.defines = @@ -79,13 +83,10 @@ function(that, name, callback){ && callback(that) // stop requested by callback... if(stop === false || stop == 'stop'){ - return that - } - } + return that } } that = that.__proto__ } while(that !== null) - return res -} + return res }