can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20102: LJSUP-9847: Implement javascript shims f...

Committer: dpetrov
LJSUP-9847: Implement javascript shims for several es5 functions
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2011-09-21 08:38:48 UTC (rev 20101)
+++ trunk/htdocs/js/basic.js	2011-09-21 08:52:21 UTC (rev 20102)
@@ -297,6 +297,12 @@
 	}	
 });
 
+Object.extend(Date, {
+    now: function() {
+        return +new Date;
+    }
+});
+
 Object.extend(Array, {
 	/**
 	 * Returns true if an object is an array, false if it is not.

Tags: can3p, js, livejournal
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