Skip to content

Commit a34c037

Browse files
authored
Merge pull request alibaba#1468 from Hanks10100/jsfm-feature-bind-check
[jsfm] Add validation when binding events
2 parents cf175cd + e8205ea commit a34c037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5/frameworks/legacy/vm/directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function bindEvents (vm, el, events) {
282282
handler = vm[handler]
283283
/* istanbul ignore if */
284284
if (!handler) {
285-
console.debug(`[JS Framework] The method "${handler}" is not defined.`)
285+
console.warn(`[JS Framework] The event handler "${handler}" is not defined.`)
286286
}
287287
}
288288
const realVm = vm._realParent ? vm._realParent : vm

0 commit comments

Comments
 (0)