js/data/Entity.js
function (entity, options, callback) {
                if (entity instanceof Entity) {
                    entity.validate(options, callback);
                } else {
                    callback("parameter is not an entity");
                }
            }
function (entity, options, callback) {
                if (entity instanceof Entity) {
                    entity.validate(options, callback);
                } else {
                    callback("parameter is not an entity");
                }
            }
function ( entity , options , callback ) { if ( entity instanceof Entity ) { entity . validate ( options , callback ) ; } else { callback ( "parameter is not an entity" ) ; } }
Validates a sub entity
@param {js.data.Entity} entity
@param {Object} options
@param {Function} callback
Validates a sub entity