Skip to content

Commit

Permalink
Remove mentions of event hooks from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Ng authored and Ben Ng committed Oct 29, 2013
1 parent a2f4dc0 commit fb42f97
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,6 @@ utils.mixin(model, new (function () {
item.createdAt = new Date();
}

// After-create hook
if (typeof item.afterCreate === 'function') {
item.afterCreate();
}
Expand All @@ -853,7 +852,6 @@ utils.mixin(model, new (function () {
utils.mixin(data, params);
this.validateAndUpdateFromParams(item, data, opts);

// After-update hook
if (typeof item.afterUpdateProperties === 'function') {
item.afterUpdateProperties();
}
Expand Down Expand Up @@ -945,7 +943,6 @@ utils.mixin(model, new (function () {
item.errors = errs;
}

// After-update hook
if (typeof item.afterValidate === 'function') {
item.afterValidate();
}
Expand Down

0 comments on commit fb42f97

Please sign in to comment.