Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix define emulation

  • Loading branch information...
commit 2ff24fb2a74ea291b0610beb973836ba53b6dcc0 1 parent fb51d02
@kriszyp authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.