mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40: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 {
|
do {
|
||||||
if(that.hasOwnProperty(name)){
|
if(that.hasOwnProperty(name)){
|
||||||
res.push(that)
|
res.push(that)
|
||||||
|
// handle callback...
|
||||||
stop = callback
|
stop = callback
|
||||||
&& callback(that)
|
&& callback(that)
|
||||||
// callback requested a stop...
|
// stop requested by callback...
|
||||||
if(stop === false || stop == 'stop'){
|
if(stop === false || stop == 'stop'){
|
||||||
return that
|
return that
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
that = that.__proto__
|
that = that.__proto__
|
||||||
// XXX revise...
|
|
||||||
} while(that !== null)
|
} while(that !== null)
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user