Skip to content

Commit

Permalink
utilities.js: Remove custom string trim() prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Jul 10, 2023
1 parent ecc6558 commit 8a32e26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions js/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ var HintActiveClass = "hintTextboxActive";
var MiniHintClass = "hintTextboxMini";
var MiniHintActiveClass = "hintTextboxActiveMini";

// define a custom method on the string class to trim leading and training spaces
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); };

function initHintTextboxes() {
var inputs = document.getElementsByTagName('input');
for (i=0; i<inputs.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion js/utilities.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a32e26

Please sign in to comment.