From 50730966012aed17dd31c1797cbef2ce1dcb4776 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 14 Apr 2020 02:15:25 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- object.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object.js b/object.js index 94074de..128690e 100755 --- a/object.js +++ b/object.js @@ -74,15 +74,15 @@ function(that, name, callback){ do { if(that.hasOwnProperty(name)){ res.push(that) + // handle callback... stop = callback && callback(that) - // callback requested a stop... + // stop requested by callback... if(stop === false || stop == 'stop'){ return that } } that = that.__proto__ - // XXX revise... } while(that !== null) return res }