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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nuysoft committed Dec 11, 2014
1 parent c85eb46 commit 0740251
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brix-bisheng",
"version": "0.1.4",
"version": "0.1.5",
"authors": [
"墨智 <[email protected]>"
],
Expand Down
6 changes: 3 additions & 3 deletions dist/bisheng.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ define(
type: TYPES.UPDATE,
path: path.concat(name),
value: value,
oldValue: oldValue[name] !== undefined ? oldValue[name].valueOf() : oldValue[name]
oldValue: (oldValue[name] !== undefined && oldValue[name] !== null) ? oldValue[name].valueOf() : oldValue[name]
})
continue
}
Expand Down Expand Up @@ -644,7 +644,7 @@ define(
}
}
return $(target)
},
}
}

// comment 定位符
Expand Down Expand Up @@ -1568,7 +1568,7 @@ define(
var content = Handlebars.compile(ast)(context)

content = HTML.convert(content)
Scanner.scan(content[0], change.context)
Scanner.scan(content[0], change.root)
content = content.contents()

var target = Locator.parseTarget(locator)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brix-bisheng",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/brix/bisheng/flush.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ define(
var content = Handlebars.compile(ast)(context)

content = HTML.convert(content)
Scanner.scan(content[0], change.context)
Scanner.scan(content[0], change.root)
content = content.contents()

var target = Locator.parseTarget(locator)
Expand Down
2 changes: 1 addition & 1 deletion src/brix/bisheng/locator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ define(
}
}
return $(target)
},
}
}

// comment 定位符
Expand Down
2 changes: 1 addition & 1 deletion src/brix/bisheng/loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ define(
type: TYPES.UPDATE,
path: path.concat(name),
value: value,
oldValue: oldValue[name] !== undefined ? oldValue[name].valueOf() : oldValue[name]
oldValue: (oldValue[name] !== undefined && oldValue[name] !== null) ? oldValue[name].valueOf() : oldValue[name]
})
continue
}
Expand Down

0 comments on commit 0740251

Please sign in to comment.