空值判断

This commit is contained in:
pangxie1991 2017-04-12 20:04:08 +08:00
parent b207efe729
commit 832223156f

View File

@ -104,7 +104,8 @@ export default function(type) {
},
update(el) {
el[CONTEXT].scrollEventListener();
const context = el[CONTEXT];
context.scrollEventListener && context.scrollEventListener();
},
unbind(el) {