spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[livejournal] r23223: LJSUP-14101: Redesigned update page: Ins...

Committer: atyurin
LJSUP-14101: Redesigned update page: Insert Video button not working correctly
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-10-31 07:15:15 UTC (rev 23222)
+++ trunk/htdocs/js/basic.js	2012-10-31 09:09:02 UTC (rev 23223)
@@ -1458,6 +1458,13 @@
 	}
 });
 
+// will be shimmed using es6-shim later
+if (typeof String.prototype.startsWith !== 'function') {
+	String.prototype.startsWith = function(start) {
+		return this.slice(0, String(start).length) === start;
+	}
+}
+
 Object.extend(Date, {
 	/**
 	 * Return timestamp number for current moment.

Tags: atyurin, js, livejournal, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments