Comparing version 0.1.18 to 0.1.19
@@ -387,2 +387,6 @@ "use strict"; | ||
request.onEnd(function () { | ||
that._destroy(); | ||
}); | ||
return request.parse(); | ||
@@ -428,3 +432,7 @@ } | ||
request.onEnd(function () { | ||
that._destroy(); | ||
}); | ||
return request.parse(); | ||
@@ -489,7 +497,5 @@ } | ||
_destroy: function Request__destroy() { | ||
if (this.isRendered) { | ||
this.request.emit('destory'); | ||
this.eventHandler.removeAllListeners(); | ||
this.destroy(); | ||
} | ||
this.request.emit('destory'); | ||
this.eventHandler.removeAllListeners(); | ||
this.destroy(); | ||
}, | ||
@@ -635,3 +641,3 @@ /** | ||
_handleError: function Request_handleError(response) { | ||
var request, code; | ||
var request, code, that = this; | ||
@@ -683,2 +689,6 @@ if (this.isRendered) { | ||
request.setStatusCode(code); | ||
request.onEnd(function () { | ||
that._destroy(); | ||
}); | ||
// return parsed request | ||
@@ -685,0 +695,0 @@ return request.parse(); |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "mongoose": "4.1.x", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160765
5145