|
|
|
|
|
by Cushman
5039 days ago
|
|
> Or even by delegating to another object: > viewInstance.onScroll = somethingElse.render; This one is a bit dangerous, because as you mention the "methods" are just anonymous functions assigned to objects. If `render` is expecting to be called on a `somethingElse`, this might not work right without being bound. |
|