Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 0740251

Browse files
committed
1 parent c85eb46 commit 0740251

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brix-bisheng",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"authors": [
55
"墨智 <mozhi.gyy@alibaba-inc.com>"
66
],

dist/bisheng.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ define(
496496
type: TYPES.UPDATE,
497497
path: path.concat(name),
498498
value: value,
499-
oldValue: oldValue[name] !== undefined ? oldValue[name].valueOf() : oldValue[name]
499+
oldValue: (oldValue[name] !== undefined && oldValue[name] !== null) ? oldValue[name].valueOf() : oldValue[name]
500500
})
501501
continue
502502
}
@@ -644,7 +644,7 @@ define(
644644
}
645645
}
646646
return $(target)
647-
},
647+
}
648648
}
649649

650650
// comment 定位符
@@ -1568,7 +1568,7 @@ define(
15681568
var content = Handlebars.compile(ast)(context)
15691569

15701570
content = HTML.convert(content)
1571-
Scanner.scan(content[0], change.context)
1571+
Scanner.scan(content[0], change.root)
15721572
content = content.contents()
15731573

15741574
var target = Locator.parseTarget(locator)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brix-bisheng",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/brix/bisheng/flush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ define(
276276
var content = Handlebars.compile(ast)(context)
277277

278278
content = HTML.convert(content)
279-
Scanner.scan(content[0], change.context)
279+
Scanner.scan(content[0], change.root)
280280
content = content.contents()
281281

282282
var target = Locator.parseTarget(locator)

src/brix/bisheng/locator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ define(
103103
}
104104
}
105105
return $(target)
106-
},
106+
}
107107
}
108108

109109
// comment 定位符

src/brix/bisheng/loop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ define(
495495
type: TYPES.UPDATE,
496496
path: path.concat(name),
497497
value: value,
498-
oldValue: oldValue[name] !== undefined ? oldValue[name].valueOf() : oldValue[name]
498+
oldValue: (oldValue[name] !== undefined && oldValue[name] !== null) ? oldValue[name].valueOf() : oldValue[name]
499499
})
500500
continue
501501
}

0 commit comments

Comments
 (0)