[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: upgrade version, fix jest env
Browse files Browse the repository at this point in the history
  • Loading branch information
BuptStEve committed Aug 10, 2018
1 parent a5def36 commit 0ed094b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/basic/utils/tua-mp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var version = "0.7.2";
var version = "0.7.3";

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tua-mp",
"version": "0.7.2",
"version": "0.7.3",
"description": "A progressive miniprogram framework for coding like Vue",
"main": "examples/basic/utils/tua-mp.js",
"files": [
Expand All @@ -22,6 +22,7 @@
"jest": {
"bail": true,
"clearMocks": true,
"testEnvironment": "node",
"setupFiles": [
"./__mocks__/wxMock.js"
],
Expand Down Expand Up @@ -80,11 +81,11 @@
"eslint-plugin-standard": "^3.1.0",
"gh-pages": "^1.2.0",
"jest": "^23.3.0",
"rollup": "^0.59.4",
"rollup": "^0.64.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-eslint": "^4.0.0",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-replace": "^2.0.0",
"vuepress": "^0.12.0"
"vuepress": "^0.14.1"
}
}
3 changes: 2 additions & 1 deletion src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const bindComputed = (vm, computed, asyncSetData) => {
Object.keys(computed).forEach((key) => {
const dep = new Dep()
const getVal = typeof computed[key] === 'function'
? computed[key].bind(vm) : computed[key].get.bind(vm)
? computed[key].bind(vm)
: computed[key].get.bind(vm)

let oldVal
let oldValStr
Expand Down

0 comments on commit 0ed094b

Please sign in to comment.