Skip to content

Commit

Permalink
Fix define emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Feb 9, 2012
1 parent fb51d02 commit 2ff24fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lazy-array.js
@@ -1,8 +1,9 @@
({define:typeof define!="undefined"?define:function(deps, factory){module.exports = factory.apply(this, deps.map(function(id){require(id)}))}}).
({define:typeof define!="undefined"?define:function(deps, factory){module.exports = factory.apply(this, deps.map(function(id){return require(id)}))}}).
define(["./promise"], function(promise){
try{
var when = promise.when;
}catch(e){
console.log("couldn't load promise library", e.stack);
when = function(value, callback){
return callback(value);
}
Expand Down

0 comments on commit 2ff24fb

Please sign in to comment.