Commits

Shlomi Fish committed e442a74

Fixed a copy+paste error (lowercasing).

Thanks to ThiefMaster on http://stackoverflow.com/a/14414659/7709 .

  • Participants
  • Parent commits 9522987

Comments (0)

Files changed (1)

File fc-solve/site/wml/src/js/common-methods.js

   };
 }
 
-// taken from http://stackoverflow.com/questions/202605/repeat-string-javascript
-if (!string.prototype.repeat) {
-string.prototype.repeat = function(count) {
+// Taken from http://stackoverflow.com/questions/202605/repeat-string-javascript
+if (!String.prototype.repeat) {
+String.prototype.repeat = function(count) {
     if (count < 1) return '';
-    var result = '', pattern = this.valueof();
+    var result = '', pattern = this.valueOf();
     while (count > 0) {
         if (count & 1) result += pattern;
         count >>= 1, pattern += pattern;