Permalink
Browse files

examples fix

  • Loading branch information...
1 parent 03fa7bb commit 486a4eb082a0f32b977634579c40547cf5a1e973 @cadorn cadorn committed Mar 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/examples.js
View
@@ -11,6 +11,10 @@ exports.main = function(API, options)
API.LOADER = API.LOADER || LOADER;
options = options || {};
+ if (typeof options.debug === "undefined")
+ {
+ options.debug = true;
+ }
var deferred = Q.defer();
@@ -70,7 +74,7 @@ exports.main = function(API, options)
API.LOADER.sandbox(uri, function(sandbox)
{
try {
- Q.when(sandbox.main(), result.resolve, result.reject);
+ Q.when(sandbox.main(options), result.resolve, result.reject);
} catch(e) {
result.reject(e);
}

0 comments on commit 486a4eb

Please sign in to comment.