updated docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-30 02:26:47 +03:00
parent 64d3de1fd2
commit 3d36d98602

View File

@ -212,11 +212,10 @@ parent(<method>, <this>)
-> undefined -> undefined
``` ```
_Edge case: The `parent(<method>, ..)` has one flaw -- it can't distinguish _Edge case: The `parent(<method>, ..)` has one flaw -- in the rare case
between two references to the same method in a chain and will always where a prototype chain contains two or more references to the same
return the first, so the first case is preferable. This issue can't be method under the same name, `parent(..)` can't distinguish between these
resolved as this case has no information on the prototype containing the references and will always return the first one._
reference, but these cases should not be very common._
Get parent method and call it Get parent method and call it