Skip to content

Commit

Permalink
* [jsfm] fix undefined for element's depth
Browse files Browse the repository at this point in the history
  • Loading branch information
terrykingcha committed Apr 15, 2016
1 parent 6844f4a commit 2b7eb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js-framework/lib/vm/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export function _checkDisplay(target, fragBlock, context) {
export function _watchBlock(fragBlock, calc, type, handler) {
const differ = this && this._app && this._app.differ
const config = {}
const depth = fragBlock.element.depth + 1
const depth = (fragBlock.element.depth || 0) + 1

this._watch(calc, (value) => {
config.latestValue = value
Expand Down
2 changes: 1 addition & 1 deletion src/js-framework/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weex-jsframework",
"version": "0.13.4",
"version": "0.13.5",
"description": "JS Framework for Weex solution which is a extendable cross-platform solution for dynamic programming and publishing projects",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 2b7eb9e

Please sign in to comment.