raptor-render-context
Advanced tools
Comparing version 0.2.13-beta to 0.2.14-beta
@@ -123,2 +123,3 @@ /* | ||
Fragment.call(this, context); | ||
this.timeoutId = null; | ||
} | ||
@@ -181,4 +182,4 @@ AsyncFragment.prototype = { | ||
this.attributes = attributes || (attributes = {}); | ||
this._af = this._prevAF = this._parentAF = null; | ||
if (!attributes.events) { | ||
@@ -262,5 +263,5 @@ attributes.events = new EventEmitter(); | ||
asyncFragment.next = bufferedFragment; | ||
asyncContext.asyncFragment = asyncFragment; | ||
asyncContext.parentAsyncFragment = asyncFragment; | ||
var prevAsyncFragment = this.prevAsyncFragment || this.parentAsyncFragment; | ||
asyncContext._af = asyncFragment; | ||
asyncContext._parentAF = asyncFragment; | ||
var prevAsyncFragment = this._prevAF || this._parentAF; | ||
// See if we are being buffered by a previous asynchronous | ||
@@ -279,3 +280,3 @@ // fragment | ||
// Set the ready flag based on our earlier checks above | ||
this.prevAsyncFragment = bufferedFragment; | ||
this._prevAF = bufferedFragment; | ||
// Record the previous async fragment for linking purposes | ||
@@ -333,4 +334,4 @@ asyncFragment.stack = includeStack ? new Error().stack : null; | ||
error: function(e) { | ||
if (this.asyncFragment) { | ||
this.asyncFragment.end(e); | ||
if (this._af) { | ||
this._af.end(e); | ||
} else { | ||
@@ -346,4 +347,4 @@ this.emit('error', e); | ||
if (this.asyncFragment) { | ||
this.asyncFragment.end(); | ||
if (this._af) { | ||
this._af.end(); | ||
} else { | ||
@@ -350,0 +351,0 @@ var async = this.attributes.async; |
@@ -29,3 +29,3 @@ { | ||
}, | ||
"version": "0.2.13-beta" | ||
"version": "0.2.14-beta" | ||
} |
647
28225