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