MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / bind

Function bind

06.Router/basic/js/vue.js:217–222  ·  view source on GitHub ↗

* Simple bind, faster than native * * @param {Function} fn * @param {Object} ctx * @return {Function}

(fn, ctx)

Source from the content-addressed store, hash-verified

215 */
216
217 function bind(fn, ctx) {
218 return function (a) {
219 var l = arguments.length;
220 return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx);
221 };
222 }
223
224 /**
225 * Convert an Array-like object to a real Array.

Callers 3

TransitionFunction · 0.70
stateMixinFunction · 0.70
vue.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected