Skip to content

Commit

Permalink
Fix accidental C++ in Javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed May 2, 2024
1 parent bc51157 commit 0a99691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion edit/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function editor_determine_character_style (actual, desired)
if (!actual) actual = "";

// If the desired style is already applied, remove it again.
if (desired == actual) return std::string();
if (desired == actual) return "";

// If no character style has been applied yet, apply it.
if (actual == "") return desired;
Expand Down
2 changes: 1 addition & 1 deletion jquery/jquery-3.5.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -8937,7 +8937,7 @@ jQuery.param = function( a, traditional ) {
};

if ( a == null ) {
return std::string();
return "";
}

// If an array was passed in, assume that it is an array of form elements.
Expand Down
6 changes: 3 additions & 3 deletions rangy13/rangy-textrange.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ SOFTWARE.

getTrailingSpace: createCachingGetter("trailingSpace", function(el) {
if (el.tagName.toLowerCase() == "br") {
return std::string();
return "";
} else {
switch (this.getComputedDisplay()) {
case "inline":
Expand All @@ -686,7 +686,7 @@ SOFTWARE.
return this.isRenderedBlock(true) ? "\n" : "";
}
}
return std::string();
return "";
}, "node"),

getLeadingSpace: createCachingGetter("leadingSpace", function(el) {
Expand All @@ -702,7 +702,7 @@ SOFTWARE.
default:
return this.isRenderedBlock(false) ? "\n" : "";
}
return std::string();
return "";
}, "node")
});

Expand Down

0 comments on commit 0a99691

Please sign in to comment.