Skip to content

Commit

Permalink
fix(attribute): fix null check
Browse files Browse the repository at this point in the history
adds a null check to parent element
  • Loading branch information
zewa666 committed Aug 21, 2015
1 parent dbfe1d3 commit f14e4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TCustomAttribute {
}

valueChanged(){
if(this.element.parentElement !== undefined) {
if(this.element.parentElement !== undefined && this.element.parentElement !== null) {
this.service.updateTranslations(this.element.parentElement);
}
}
Expand Down

0 comments on commit f14e4cc

Please sign in to comment.