Fix JS doc for private methods
This commit is contained in:
parent
42c1ad3dca
commit
cdf9956867
14
lib/dao.js
14
lib/dao.js
|
@ -399,7 +399,7 @@ var operators = {
|
||||||
nlike: 'NOT LIKE'
|
nlike: 'NOT LIKE'
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*
|
||||||
* Normalize the filter object and throw errors if invalid values are detected
|
* Normalize the filter object and throw errors if invalid values are detected
|
||||||
* @param {Object} filter The query filter object
|
* @param {Object} filter The query filter object
|
||||||
* @returns {Object} The normalized filter object
|
* @returns {Object} The normalized filter object
|
||||||
|
@ -446,7 +446,7 @@ DataAccessObject._normalize = function (filter) {
|
||||||
return filter;
|
return filter;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*
|
||||||
* Coerce values based the property types
|
* Coerce values based the property types
|
||||||
* @param {Object} where The where clause
|
* @param {Object} where The where clause
|
||||||
* @returns {Object} The coerced where clause
|
* @returns {Object} The coerced where clause
|
||||||
|
@ -1077,10 +1077,11 @@ setRemoting(DataAccessObject.prototype.updateAttributes, {
|
||||||
http: {verb: 'put', path: '/'}
|
http: {verb: 'put', path: '/'}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Reload object from persistence
|
* Reload object from persistence
|
||||||
* Requires `id` member of `object` to be able to call `find`
|
* Requires `id` member of `object` to be able to call `find`
|
||||||
* @param {Function} callback Called with (err, instance) arguments
|
* @param {Function} callback Called with (err, instance) arguments
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
DataAccessObject.prototype.reload = function reload(callback) {
|
DataAccessObject.prototype.reload = function reload(callback) {
|
||||||
if (stillConnecting(this.getDataSource(), this, arguments)) {
|
if (stillConnecting(this.getDataSource(), this, arguments)) {
|
||||||
|
@ -1091,12 +1092,13 @@ DataAccessObject.prototype.reload = function reload(callback) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*
|
||||||
* Define readonly property on object
|
* Define readonly property on object
|
||||||
*
|
*
|
||||||
* @param {Object} obj
|
* @param {Object} obj
|
||||||
* @param {String} key
|
* @param {String} key
|
||||||
* @param {Mixed} value
|
* @param {Mixed} value
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
function defineReadonlyProp(obj, key, value) {
|
function defineReadonlyProp(obj, key, value) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
|
@ -1122,12 +1124,12 @@ DataAccessObject.scope = function (name, query, targetClass) {
|
||||||
defineScope(this, targetClass || this, name, query);
|
defineScope(this, targetClass || this, name, query);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*
|
||||||
* Add 'include'
|
* Add 'include'
|
||||||
*/
|
*/
|
||||||
jutil.mixin(DataAccessObject, Inclusion);
|
jutil.mixin(DataAccessObject, Inclusion);
|
||||||
|
|
||||||
/*!
|
/*
|
||||||
* Add 'relation'
|
* Add 'relation'
|
||||||
*/
|
*/
|
||||||
jutil.mixin(DataAccessObject, Relation);
|
jutil.mixin(DataAccessObject, Relation);
|
||||||
|
|
Loading…
Reference in New Issue