Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Aug 10, 2017
1 parent dd96b3c commit 06d1c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/utils.ts
Expand Up @@ -170,7 +170,7 @@ export function patchProperty(obj: any, prop: string, prototype?: any) {
if (!target) {
return null;
}
if (target.hasOwnProperty(eventNameSymbol)) {
if (target[eventNameSymbol]) {
return wrapFn;
} else if (originalDescGet) {
// result will be null when use inline event attribute,
Expand Down

0 comments on commit 06d1c9d

Please sign in to comment.