Skip to content

Commit

Permalink
fix: 漏写引号
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbachen committed Jul 19, 2018
1 parent cebb660 commit 8dbc00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-weapp/src/create-component.js
Expand Up @@ -54,7 +54,7 @@ function processEvent (eventHandlerName, obj) {

// 普通的事件(非匿名函数),会直接call
if (!isAnonymousFn) {
if (so in bindArgs && bindArgs['so'] !== 'this') {
if ('so' in bindArgs && bindArgs['so'] !== 'this') {
scope = bindArgs['so']
delete bindArgs['so']
}
Expand All @@ -67,7 +67,7 @@ function processEvent (eventHandlerName, obj) {
} else {
// 匿名函数,会将scope作为第一个参数
let _scope = null
if (so in bindArgs && bindArgs['so'] !== 'this') {
if ('so' in bindArgs && bindArgs['so'] !== 'this') {
_scope = bindArgs['so']
delete bindArgs['so']
}
Expand Down

0 comments on commit 8dbc00d

Please sign in to comment.