fix endsWith if check

v1.18.x
barisusakli 10 years ago
parent 810d3be512
commit 6b950d0596

@ -365,7 +365,9 @@
} }
return i < 0; return i < 0;
}; };
}
if (typeof String.prototype.endsWith != 'function') {
String.prototype.endsWith = function(suffix) { String.prototype.endsWith = function(suffix) {
if (this.length < suffix.length) { if (this.length < suffix.length) {
return false; return false;

Loading…
Cancel
Save