Comparing version
{ | ||
"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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
91
-1.09%636549
-0.09%20782
-0.06%