MCPcopy Index your code
hub / github.com/TruthHun/BookStack / initMethods

Function initMethods

static/vuejs/vue.js:2823–2843  ·  view source on GitHub ↗
(vm, methods)

Source from the content-addressed store, hash-verified

2821}
2822
2823function initMethods (vm, methods) {
2824 var props = vm.$options.props;
2825 for (var key in methods) {
2826 vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
2827 {
2828 if (methods[key] == null) {
2829 warn(
2830 "method \"" + key + "\" has an undefined value in the component definition. " +
2831 "Did you reference the function correctly?",
2832 vm
2833 );
2834 }
2835 if (props && hasOwn(props, key)) {
2836 warn(
2837 ("method \"" + key + "\" has already been defined as a prop."),
2838 vm
2839 );
2840 }
2841 }
2842 }
2843}
2844
2845function initWatch (vm, watch) {
2846 for (var key in watch) {

Callers 1

initStateFunction · 0.70

Calls 3

bindFunction · 0.70
hasOwnFunction · 0.70
warnFunction · 0.50

Tested by

no test coverage detected