equal
deleted
inserted
replaced
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 } |