Skip to content
Browse files

Fix define emulation

  • Loading branch information...
1 parent fb51d02 commit 2ff24fb2a74ea291b0610beb973836ba53b6dcc0 @kriszyp committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lazy-array.js
View
3 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);
}

0 comments on commit 2ff24fb

Please sign in to comment.
Something went wrong with that request. Please try again.