Commit a6682a2e by Tomas Alabes

Change reference to eve to use eve instead of . when loading with AMD. By @arnemart

parent f294fcb7
require(['../raphael'], function(Raphael){
var paper = Raphael(0, 0, 640, 720, "container");
// Work here
});
\ No newline at end of file
......@@ -10,7 +10,7 @@
// AMD support
if (typeof define === "function" && define.amd) {
// Define as an anonymous module
define(["."], function( eve ) {
define(["eve"], function( eve ) {
return factory(glob, eve);
});
} else {
......
......@@ -8,10 +8,10 @@
<!-- Remember to run to pull the eve submodule -->
<!-- To work with concatenated version -->
<!--<script type="text/javascript" src="raphael.js"></script>-->
<!--<script type="text/javascript" src="../raphael.js"></script>-->
<!-- To work with minified version -->
<!--<script type="text/javascript" src="raphael-min.js"></script>-->
<!--<script type="text/javascript" src="../raphael-min.js"></script>-->
<!-- To work with dev versions -->
<script type="text/javascript" src="../eve/eve.js"></script>
......@@ -28,7 +28,8 @@
</script>
<!-- AMD use -->
<!--<script data-main="test" src="require.js"></script>-->
<!--<script data-main="amdDev" src="require.js"></script>-->
<!-- Use amdDev.js to work with AMD and Raphael -->
</head>
<body>
......
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -389,7 +389,7 @@
// AMD support
if (typeof define === "function" && define.amd) {
// Define as an anonymous module
define(["."], function( eve ) {
define(["eve"], function( eve ) {
return factory(glob, eve);
});
} else {
......
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