|
|
@@ -18,6 +18,26 @@ function Vue (options) {
|
|
|
this._init(options)
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * Mixin global API
|
|
|
+ */
|
|
|
+
|
|
|
+extend(Vue, require('./api/global'))
|
|
|
+
|
|
|
+/**
|
|
|
+ * Vue and every constructor that extends Vue has an
|
|
|
+ * associated options object, which can be accessed during
|
|
|
+ * compilation steps as `this.constructor.options`.
|
|
|
+ */
|
|
|
+
|
|
|
+Vue.options = {
|
|
|
+ directives : require('./directives'),
|
|
|
+ filters : require('./filters'),
|
|
|
+ partials : {},
|
|
|
+ effects : {},
|
|
|
+ components : {}
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Build up the prototype
|
|
|
*/
|
|
|
@@ -72,10 +92,4 @@ extend(p, require('./api/dom'))
|
|
|
extend(p, require('./api/events'))
|
|
|
extend(p, require('./api/lifecycle'))
|
|
|
|
|
|
-/**
|
|
|
- * Mixin global API
|
|
|
- */
|
|
|
-
|
|
|
-extend(Vue, require('./api/global'))
|
|
|
-
|
|
|
module.exports = Vue
|