We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce0b0f commit fa1f899Copy full SHA for fa1f899
src/prototype/lang/string.js
@@ -878,8 +878,9 @@ Object.extend(String.prototype, (function() {
878
isJSON: isJSON,
879
evalJSON: NATIVE_JSON_PARSE_SUPPORT ? parseJSON : evalJSON,
880
include: include,
881
- startsWith: startsWith,
882
- endsWith: endsWith,
+ // Firefox 18+ supports String.prototype.startsWith, String.prototype.endsWith
+ startsWith: String.prototype.startsWith || startsWith,
883
+ endsWith: String.prototype.endsWith || endsWith,
884
empty: empty,
885
blank: blank,
886
interpolate: interpolate
0 commit comments