Permalink
Browse files

Flattening dir structure for easier package config in both AMD and no…

…de (if poly is ever needed there)
  • Loading branch information...
1 parent f4c2f49 commit 866b0972f3c5f1f92ec214e0df5cfc9d67453cbd @briancavalier briancavalier committed Jan 24, 2012
View
@@ -0,0 +1 @@
+.idea/
File renamed without changes.
@@ -331,4 +331,6 @@ define(['./_base', 'exports'], function (base, exports) {
}
};
+ return exports;
+
});
File renamed without changes.
File renamed without changes.
View
@@ -29,7 +29,6 @@ define(['exports'], function (exports) {
}
}
-
// load module
require([def], function (module) {
@@ -46,6 +45,8 @@ define(['exports'], function (exports) {
});
- }
+ };
+
+ return exports;
});
File renamed without changes.
View
@@ -7,9 +7,11 @@
<script>
curl = {
+ debug: true,
+ baseUrl: '../',
+ pluginPath: null,
paths: {
- poly: '../lib/poly',
- 'my': '../lib/shims'
+ poly: './poly'
}
};
@@ -19,7 +21,7 @@
<script>
-// For testing in an ES env, remove shimmed methods first
+// For testing in an ES env, remove native methods first
Array.prototype.forEach = null;
Array.prototype.map = null;
Array.prototype.every = null;
@@ -30,12 +32,6 @@
Array.prototype.reduceRight = null;
delete Array.isArray;
- curl(['poly!my/array']).then(
- function () {
- runTests();
- }
- );
-
function runTests () {
var methodNames, testArray;
@@ -242,14 +238,12 @@
function output () {
var logNode, args;
args = [].slice.call(arguments);
- curl(['curl/domReady'], function () {
- var msgNode, message;
- logNode || (logNode = document.getElementById('output'));
- msgNode = document.createElement('div');
- message = args.join(' ');
- msgNode.appendChild(document.createTextNode(message));
- logNode.appendChild(msgNode);
- });
+ var msgNode, message;
+ logNode || (logNode = document.getElementById('output'));
+ msgNode = document.createElement('div');
+ message = args.join(' ');
+ msgNode.appendChild(document.createTextNode(message));
+ logNode.appendChild(msgNode);
}
</script>
@@ -261,4 +255,7 @@
<div id="output"></div>
</body>
+<script>
+ curl(['poly!array']).then(runTests);
+</script>
</html>
Oops, something went wrong.

0 comments on commit 866b097

Please sign in to comment.