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

Function installGlobalAPI

01.GettingStarted/js/vue.js:9869–10047  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

9867 };
9868
9869 function installGlobalAPI (Vue) {
9870 /**
9871 * Vue and every constructor that extends Vue has an
9872 * associated options object, which can be accessed during
9873 * compilation steps as `this.constructor.options`.
9874 *
9875 * These can be seen as the default options of every
9876 * Vue instance.
9877 */
9878
9879 Vue.options = {
9880 directives: directives,
9881 elementDirectives: elementDirectives,
9882 filters: filters,
9883 transitions: {},
9884 components: {},
9885 partials: {},
9886 replace: true
9887 };
9888
9889 /**
9890 * Expose useful internals
9891 */
9892
9893 Vue.util = util;
9894 Vue.config = config;
9895 Vue.set = set;
9896 Vue['delete'] = del;
9897 Vue.nextTick = nextTick;
9898
9899 /**
9900 * The following are exposed for advanced usage / plugins
9901 */
9902
9903 Vue.compiler = compiler;
9904 Vue.FragmentFactory = FragmentFactory;
9905 Vue.internalDirectives = internalDirectives;
9906 Vue.parsers = {
9907 path: path,
9908 text: text,
9909 template: template,
9910 directive: directive,
9911 expression: expression
9912 };
9913
9914 /**
9915 * Each instance constructor, including Vue, has a unique
9916 * cid. This enables us to create wrapped "child
9917 * constructors" for prototypal inheritance and cache them.
9918 */
9919
9920 Vue.cid = 0;
9921 var cid = 1;
9922
9923 /**
9924 * Class inheritance
9925 *
9926 * @param {Object} extendOptions

Callers 1

vue.jsFile · 0.70

Calls 6

warnFunction · 0.70
createClassFunction · 0.70
mergeOptionsFunction · 0.70
toArrayFunction · 0.70
isPlainObjectFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected