Skip to content

Commit 4801d7a

Browse files
committed
allow dynamic set path for props
1 parent 78271e5 commit 4801d7a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/directives/prop.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var _ = require('../util')
22
var Watcher = require('../watcher')
3-
var expParser = require('../parsers/expression')
43

54
module.exports = {
65

@@ -40,11 +39,8 @@ module.exports = {
4039
child.$set(childKey, this.parentWatcher.value)
4140

4241
// only setup two-way binding if this is not a one-way
43-
// binding, and the parentKey is a "settable" simple path.
44-
if (
45-
!this._descriptor.oneWay &&
46-
expParser.isSimplePath(parentKey)
47-
) {
42+
// binding.
43+
if (!this._descriptor.oneWay) {
4844
this.childWatcher = new Watcher(
4945
child,
5046
childKey,

0 commit comments

Comments
 (0)