mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
40b40a69a5
commit
5073096601
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user