Safer UMD wrapper

This commit is contained in:
Maxime Thirouin
2014-04-02 10:50:51 +02:00
parent e891de30cc
commit 9849ac60d2

View File

@@ -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
} }
}))
}));