Safer UMD wrapper
This commit is contained in:
7
pjax.js
7
pjax.js
@@ -1,4 +1,4 @@
|
|||||||
(function(root, factory) {
|
;(function(root, factory) {
|
||||||
if (typeof exports === "object") {
|
if (typeof exports === "object") {
|
||||||
// CommonJS
|
// CommonJS
|
||||||
module.exports = factory()
|
module.exports = factory()
|
||||||
@@ -12,6 +12,8 @@
|
|||||||
root.Pjax = factory()
|
root.Pjax = factory()
|
||||||
}
|
}
|
||||||
}(this, function() {
|
}(this, function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
function newUid() {
|
function newUid() {
|
||||||
return (new Date().getTime())
|
return (new Date().getTime())
|
||||||
}
|
}
|
||||||
@@ -582,4 +584,5 @@
|
|||||||
|
|
||||||
return stupidPjax
|
return stupidPjax
|
||||||
}
|
}
|
||||||
}))
|
|
||||||
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user