Updated UMD definition

As per this PR: https://github.com/umdjs/umd/pull/22
This commit is contained in:
jacobawenger
2014-10-19 13:07:09 -07:00
parent ea56a82088
commit 6de541060d

View File

@@ -10,14 +10,14 @@
;(function (root, factory) {
"use strict";
if (typeof exports === "object") {
// CommonJS
module.exports = factory();
} else if (typeof define === "function" && define.amd) {
if (typeof define === "function" && define.amd) {
// AMD
define([], function() {
return (root.ReactFireMixin = factory());
});
} else if (typeof exports === "object") {
// CommonJS
module.exports = factory();
} else {
// Global variables
root.ReactFireMixin = factory();