Skip to content

Commit

Permalink
chore: remove unused logger
Browse files Browse the repository at this point in the history
  • Loading branch information
imcuttle committed Mar 2, 2018
1 parent aa7b70e commit e08ddb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/decorator/autorun/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import {
autorun
} from 'mobx'
import logger from '../../utils/logger'

export default (opt = {}, target, property, description) => {
const { initKey = 'init', exitKey = 'exit' } = opt
Expand Down
5 changes: 2 additions & 3 deletions src/decorator/autorun/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import {
invokedWithArgs
} from '../utils/index'
import logger from '../../utils/logger'
import autorun from './core'


/**
/**
* 监听数据发生改变之后,将会触发该成员方法,不同于 reaction
* @name autorun
* @public
Expand All @@ -19,7 +18,7 @@ import autorun from './core'
* class Model extends Root {
* \@observable val = '123'
* \@observable deep = { key: '123' }
*
*
* \@autorun
* autorunMethod(dispose) {
* // 当 `this.val`
Expand Down

0 comments on commit e08ddb1

Please sign in to comment.