Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "vue", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"author": "Evan You <yyx990803@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -86,2 +86,6 @@ var _ = require('../util') | ||
exports.use = function (plugin) { | ||
/* istanbul ignore if */ | ||
if (plugin.installed) { | ||
return | ||
} | ||
// additional parameters | ||
@@ -95,2 +99,3 @@ var args = _.toArray(arguments, 1) | ||
} | ||
plugin.installed = true | ||
return this | ||
@@ -97,0 +102,0 @@ } |
@@ -147,9 +147,2 @@ if (process.env.NODE_ENV !== 'production') { | ||
COMPUTED_CACHE: function (name) { | ||
warn( | ||
'Computed property "' + name + '": computed properties are not cached by ' + | ||
'default in 1.0.0. You only need to enable cache for particularly expensive ones.' | ||
) | ||
}, | ||
BIND_IS: function () { | ||
@@ -156,0 +149,0 @@ warn( |
@@ -202,12 +202,7 @@ var _ = require('../util') | ||
if (typeof userDef === 'function') { | ||
def.get = _.bind(userDef, this) | ||
def.get = makeComputedGetter(userDef, this) | ||
def.set = noop | ||
} else { | ||
if (process.env.NODE_ENV !== 'production' && userDef.cache === false) { | ||
_.deprecation.COMPUTED_CACHE(key) | ||
} | ||
def.get = userDef.get | ||
? userDef.cache | ||
? userDef.cache !== false | ||
? makeComputedGetter(userDef.get, this) | ||
@@ -214,0 +209,0 @@ : _.bind(userDef.get, this) |
@@ -86,4 +86,3 @@ var _ = require('./util') | ||
this.beforeGet() | ||
var vm = this.vm | ||
var scope = this.scope || vm | ||
var scope = this.scope || this.vm | ||
var value | ||
@@ -116,3 +115,3 @@ try { | ||
if (this.filters) { | ||
value = vm._applyFilters(value, null, this.filters, false) | ||
value = scope._applyFilters(value, null, this.filters, false) | ||
} | ||
@@ -130,6 +129,5 @@ this.afterGet() | ||
Watcher.prototype.set = function (value) { | ||
var vm = this.vm | ||
var scope = this.scope || vm | ||
var scope = this.scope || this.vm | ||
if (this.filters) { | ||
value = vm._applyFilters( | ||
value = scope._applyFilters( | ||
value, this.value, this.filters, true) | ||
@@ -136,0 +134,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90
636549
20782