Posted By

iTony on 07/04/08


Tagged

javascript methods Objects binding


Versions (?)

Persistingly Binding Wrapper Function


 / Published in: JavaScript
 

  1. function createBoundedWrapper(object, method) {
  2. return function() {
  3. return method.apply(object, arguments);
  4. };
  5. }

Report this snippet  

You need to login to post a comment.