Skip to content

Commit

Permalink
fix(document): don't skip pointCut if save not defined (like in brows…
Browse files Browse the repository at this point in the history
…er doc)

Fix #4841
  • Loading branch information
vkarpov15 committed Dec 29, 2016
1 parent a8d3694 commit a5150d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Expand Up @@ -1969,7 +1969,7 @@ Document.prototype.$__registerHooksFromSchema = function() {
// this is so we can wrap everything into a promise;
var newName = ('$__original_' + pointCut);
if (!_this[pointCut]) {
return;
continue;
}
_this[newName] = _this[pointCut];
_this[pointCut] = (function(_newName) {
Expand Down

0 comments on commit a5150d6

Please sign in to comment.