Skip to content

Commit

Permalink
Compare against undefined not empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Long committed Apr 17, 2015
1 parent bb5d262 commit 34d1366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular-rich-text-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var AngularRichTextDiff;
continue;
}
var tagString = this.tagMap[diffableString[x]];
if (tagString === '') {
if (tagString === undefined) {
// We somehow have a character that is above our range but didn't map
// Do we need to add an upper bound or change the range?
htmlString += diffableString[x];
Expand Down
2 changes: 1 addition & 1 deletion angular-rich-text-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module AngularRichTextDiff {
}

var tagString = this.tagMap[diffableString[x]];
if (tagString === '') {
if (tagString === undefined) {
// We somehow have a character that is above our range but didn't map
// Do we need to add an upper bound or change the range?
htmlString += diffableString[x];
Expand Down

0 comments on commit 34d1366

Please sign in to comment.