Permalink
Browse files

Fix define emulation

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