Commit ad401490 by Timmy Willison

We can assume require's presence if define is present. Minor style adjustments.

parent 035a938d
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -5651,15 +5651,15 @@ ...@@ -5651,15 +5651,15 @@
// └─────────────────────────────────────────────────────────────────────┘ \\ // └─────────────────────────────────────────────────────────────────────┘ \\
(function (glob, factory) { (function (glob, factory) {
// AMD support // AMD support
if (typeof define === "function" && define.amd && require) { if (typeof define === "function" && define.amd) {
// Require Raphael // Require Raphael
require(["raphael"], factory); require(["raphael"], factory);
} else if ( glob.Raphael ) { } else if (glob.Raphael) {
// Browser globals (glob is window) // Browser globals (glob is window)
factory( glob.Raphael ); factory(glob.Raphael);
} }
}(this, function (R) { }(this, function (R) {
if ( !R.svg ) { if (!R.svg) {
return; return;
} }
var has = "hasOwnProperty", var has = "hasOwnProperty",
...@@ -7024,15 +7024,15 @@ ...@@ -7024,15 +7024,15 @@
// └─────────────────────────────────────────────────────────────────────┘ \\ // └─────────────────────────────────────────────────────────────────────┘ \\
(function (glob, factory) { (function (glob, factory) {
// AMD support // AMD support
if (typeof define === "function" && define.amd && require) { if (typeof define === "function" && define.amd) {
// Require Raphael // Require Raphael
require(["raphael"], factory); require(["raphael"], factory);
} else if ( glob.Raphael ) { } else if (glob.Raphael) {
// Browser globals (glob is window) // Browser globals (glob is window)
factory( glob.Raphael ); factory(glob.Raphael);
} }
}(this, function (R) { }(this, function (R) {
if ( !R.vml ) { if (!R.vml) {
return; return;
} }
var has = "hasOwnProperty", var has = "hasOwnProperty",
......
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
// └─────────────────────────────────────────────────────────────────────┘ \\ // └─────────────────────────────────────────────────────────────────────┘ \\
(function (glob, factory) { (function (glob, factory) {
// AMD support // AMD support
if (typeof define === "function" && define.amd && require) { if (typeof define === "function" && define.amd) {
// Require Raphael // Require Raphael
require(["raphael"], factory); require(["raphael"], factory);
} else if ( glob.Raphael ) { } else if (glob.Raphael) {
// Browser globals (glob is window) // Browser globals (glob is window)
factory( glob.Raphael ); factory(glob.Raphael);
} }
}(this, function (R) { }(this, function (R) {
if ( !R.svg ) { if (!R.svg) {
return; return;
} }
var has = "hasOwnProperty", var has = "hasOwnProperty",
......
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
// └─────────────────────────────────────────────────────────────────────┘ \\ // └─────────────────────────────────────────────────────────────────────┘ \\
(function (glob, factory) { (function (glob, factory) {
// AMD support // AMD support
if (typeof define === "function" && define.amd && require) { if (typeof define === "function" && define.amd) {
// Require Raphael // Require Raphael
require(["raphael"], factory); require(["raphael"], factory);
} else if ( glob.Raphael ) { } else if (glob.Raphael) {
// Browser globals (glob is window) // Browser globals (glob is window)
factory( glob.Raphael ); factory(glob.Raphael);
} }
}(this, function (R) { }(this, function (R) {
if ( !R.vml ) { if (!R.vml) {
return; return;
} }
var has = "hasOwnProperty", var has = "hasOwnProperty",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment