This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copyOnly(mid) { | |
return (/test/.test(mid) && mid !== 'dgrid/test/data/perf') || mid in { | |
// There are no modules right now in dojo boilerplate that are copy-only. If you have some, though, just add | |
// them here like this: | |
// 'app/module': 1 | |
}; | |
} | |
var profile = { | |
basePath: './', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var store = function(substores,options){ | |
return { | |
query: function(query, options){ | |
return when(promise.all(substores.map(function (store) { | |
return when(store.query(query, options)); | |
}), function (results) { | |
return results.reduce(function (out, arr) { | |
return out.concat(arr); | |
}, []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credit: this is derived from a combination of | |
// - https://gist.github.com/650000 | |
// - https://github.com/joyent/node/pull/350 | |
// - https://github.com/ajaxorg/cloud9/blob/master/support/requireJS-node.js | |
var path = require('path'), | |
fs = require('fs'), | |
defaultCompile = module.constructor.prototype._compile, | |
defaultResolveFilename = module.constructor._resolveFilename, | |
// this gives the main module a chance to use define iff it does so before any other module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html><head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Promise</title> | |
<script src="http://o.aolcdn.com/dojo/1.4/dojo/dojo.xd.js"> | |
</script> | |
<script type="text/javascript"> | |
dojo.provide("dojox.Promise"); |