Comparing version 1.3.3 to 1.3.4
@@ -178,5 +178,5 @@ /// <reference path="../nodelib/node.js"/> | ||
var doHook = function(object) { | ||
if (this.options.hooks.beforeCreate) { | ||
if (this.options.hooks.beforeCreate.length === 0) this.options.hooks.beforeCreate.call(object); | ||
else return this.options.hooks.beforeCreate.call(object, doInsert); | ||
if ($.options.hooks.beforeCreate) { | ||
if ($.options.hooks.beforeCreate.length === 0) $.options.hooks.beforeCreate.call(object); | ||
else return $.options.hooks.beforeCreate.call(object, doInsert); | ||
} | ||
@@ -183,0 +183,0 @@ }; |
{ | ||
"name": "iridium", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"author": "Benjamin Pannell <admin@sierrasoftworks.com>", | ||
@@ -5,0 +5,0 @@ "description": "A custom lightweight ORM for MongoDB designed for power-users", |
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
293339