Skip to content

Commit

Permalink
Merge pull request #352 from colorfulldays/bugfix_js_notempty_gqs
Browse files Browse the repository at this point in the history
fix: js string notempty
  • Loading branch information
wanbing authored Sep 25, 2023
2 parents c853f88 + cb7cb91 commit 34a4c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dart2js/core-types/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Object.defineProperties(String.prototype, {
},
isNotEmpty: {
get: function () {
return this.length;
return !this.isEmpty;
},
},
// runes: {
Expand Down
2 changes: 1 addition & 1 deletion fair/assets/fair_core/fair_jsbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ Object.prototype.__op_idx__ = function (key) {
},
isNotEmpty: {
get: function () {
return this.length;
return !this.isEmpty;
},
},
// runes: {
Expand Down

0 comments on commit 34a4c09

Please sign in to comment.