aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ajax/var/nonce.js6
-rw-r--r--src/core.js2
-rw-r--r--src/deprecated.js2
-rw-r--r--src/effects.js4
-rw-r--r--src/event.js2
5 files changed, 7 insertions, 9 deletions
diff --git a/src/ajax/var/nonce.js b/src/ajax/var/nonce.js
index 6e23708a8..33d0cffb6 100644
--- a/src/ajax/var/nonce.js
+++ b/src/ajax/var/nonce.js
@@ -1,7 +1,5 @@
-define( [
- "../../core"
-], function( jQuery ) {
+define( function() {
"use strict";
- return jQuery.now();
+ return Date.now();
} );
diff --git a/src/core.js b/src/core.js
index 97b4de2fc..06d0e83ad 100644
--- a/src/core.js
+++ b/src/core.js
@@ -424,8 +424,6 @@ jQuery.extend( {
return proxy;
},
- now: Date.now,
-
// jQuery.support is not used in Core but other projects attach their
// properties to it so it needs to exist.
support: support
diff --git a/src/deprecated.js b/src/deprecated.js
index 08c95538f..74907a289 100644
--- a/src/deprecated.js
+++ b/src/deprecated.js
@@ -41,4 +41,6 @@ jQuery.nodeName = nodeName;
jQuery.isWindow = isWindow;
jQuery.camelCase = camelCase;
+jQuery.now = Date.now;
+
} );
diff --git a/src/effects.js b/src/effects.js
index 1dec60e01..ec82d59f6 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -45,7 +45,7 @@ function createFxNow() {
window.setTimeout( function() {
fxNow = undefined;
} );
- return ( fxNow = jQuery.now() );
+ return ( fxNow = Date.now() );
}
// Generate parameters to create a standard animation
@@ -653,7 +653,7 @@ jQuery.fx.tick = function() {
i = 0,
timers = jQuery.timers;
- fxNow = jQuery.now();
+ fxNow = Date.now();
for ( ; i < timers.length; i++ ) {
timer = timers[ i ];
diff --git a/src/event.js b/src/event.js
index 071deb645..b10c43f8d 100644
--- a/src/event.js
+++ b/src/event.js
@@ -553,7 +553,7 @@ jQuery.Event = function( src, props ) {
}
// Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
+ this.timeStamp = src && src.timeStamp || Date.now();
// Mark it as fixed
this[ jQuery.expando ] = true;