Showing the changes to Source/Libraries/GSF.Web/Model/Scripts (1 of 6 files). Show all
Unified · Split
| @@ -129,8 +129,8 @@ function clearCachedCredentials(securedUrl, successCallback) { · 128 unmodified lines | |||
| 129 | 129 | ||
| 130 | if (successCallback) | 130 | if (successCallback) |
| 131 | request.onreadystatechange = function() { | 131 | request.onreadystatechange = function() { |
| 132 | if (this.readyState == XMLHttpRequest.DONE) | 132 | if (this.readyState === XMLHttpRequest.DONE) |
| 133 | successCallback(this.status == 401); | 133 | successCallback(this.status === 401); |
| 134 | }; | 134 | }; |
| 135 | 135 | ||
| 136 | request.send(); | 136 | request.send(); |
| @@ -407,6 +407,10 @@ function isEmpty(str) { · 270 unmodified lines | |||
| 407 | return !str || String(str).length === 0; | 407 | return !str || String(str).length === 0; |
| 408 | } | 408 | } |
| 409 | 409 | ||
| 410 | String.prototype.trimLeft = String.prototype.trimLeft || function () { | ||
| 411 | return this.replace(/^\s+/,""); | ||
| 412 | } | ||
| 413 | |||
| 410 | String.prototype.truncate = function(limit) { | 414 | String.prototype.truncate = function(limit) { |
| 411 | const text = this.trim(); | 415 | const text = this.trim(); |
| 412 | 416 | ||