Permalink
Browse files

Add some spacing to code

  • Loading branch information...
1 parent d5d2aff commit 686f172af31859ee0a4393b7513f73bc6d358e1c @benjreinhart committed Jun 3, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.js
View
@@ -2,6 +2,7 @@ var NativeDate = global.Date;
exports.freeze = function(date) {
date || (date = new Date);
+
global.Date = function() {
if (!(this instanceof NativeDate))
return NativeDate.apply(this, arguments);
@@ -24,12 +25,15 @@ exports.freeze = function(date) {
return new NativeDate(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
}
}
+
Object.keys(NativeDate).forEach(function(prop) {
Date[prop] = NativeDate[prop];
});
+
Date.now = function() {
return date.valueOf();
}
+
Date.prototype = Object.create(NativeDate.prototype);
Date.prototype.constructor = NativeDate;
}

0 comments on commit 686f172

Please sign in to comment.