Skip to content

Commit

Permalink
Fix Safari 'undefined'
Browse files Browse the repository at this point in the history
typeof obj.text == 'undefined' displays 'undefined' text on Safari
  • Loading branch information
mitgath committed Jul 28, 2015
1 parent f10b160 commit d3aa4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angular-wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ Requires:

if (obj.text && document.all) {
el.innerText = obj.text;
} else {
} else if (obj.text) {
el.textContent = obj.text;
}

Expand Down Expand Up @@ -977,4 +977,4 @@ Requires:
}]
}
});
})(angular);
})(angular);

0 comments on commit d3aa4d8

Please sign in to comment.