web/data/cubicweb.python.js
changeset 5727 29afb9e715bb
parent 5658 7b9553a9db65
child 6880 4be32427b2b9
equal deleted inserted replaced
5726:c3b99606644d 5727:29afb9e715bb
   195  *
   195  *
   196  * transforms a function into an unbound method
   196  * transforms a function into an unbound method
   197  */
   197  */
   198 function makeUnboundMethod(meth) {
   198 function makeUnboundMethod(meth) {
   199     function unboundMeth(self) {
   199     function unboundMeth(self) {
   200         var newargs = sliceList(arguments, 1);
   200         var newargs = cw.utils.sliceList(arguments, 1);
   201         return meth.apply(self, newargs);
   201         return meth.apply(self, newargs);
   202     }
   202     }
   203     unboundMeth.__name__ = meth.__name__;
   203     unboundMeth.__name__ = meth.__name__;
   204     return unboundMeth;
   204     return unboundMeth;
   205 }
   205 }