Skip to content

Commit

Permalink
Since the String HTML shims will be iterated anyways, no need to defi…
Browse files Browse the repository at this point in the history
…neProperties them twice.
  • Loading branch information
ljharb committed Jun 6, 2015
1 parent f7e1771 commit 574d95d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,6 @@
sub: function sub() { return ES.CreateHTML(this, 'sub', '', ''); },
sup: function sub() { return ES.CreateHTML(this, 'sup', '', ''); }
};
defineProperties(String.prototype, stringHTMLshims);
_forEach(Object.keys(stringHTMLshims), function (key) {
var method = String.prototype[key];
var shouldOverwrite = false;
Expand Down

0 comments on commit 574d95d

Please sign in to comment.