Skip to content

Commit

Permalink
Fix promise return values when using sandbox (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Pope authored and wilsonpage committed Jun 17, 2016
1 parent 67ac8cf commit 7eece8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/fastdom-sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Sandbox.prototype.measure = function(fn, ctx) {
var tasks = this.tasks;
var task = this.fastdom.measure(function() {
tasks.splice(tasks.indexOf(task));
fn.call(ctx);
return fn.call(ctx);
});

tasks.push(task);
Expand All @@ -86,7 +86,7 @@ Sandbox.prototype.mutate = function(fn, ctx) {
var tasks = this.tasks;
var task = this.fastdom.mutate(function() {
tasks.splice(tasks.indexOf(task));
fn.call(ctx);
return fn.call(ctx);
});

this.tasks.push(task);
Expand Down

0 comments on commit 7eece8e

Please sign in to comment.