@@ -276,7 +276,7 @@ SchemaBuilderEntity.prototype.addRule = function(name, value) {
276276/**
277277 * Add a new transformation for the entity
278278 * @param {String } name Transform name, optional.
279- * @param {Function(errorBuilder, model, next([output]), helper , entityName) } fn
279+ * @param {Function(errorBuilder, model, helper, next([output]), entityName) } fn
280280 * @return {SchemaBuilderEntity }
281281 */
282282SchemaBuilderEntity . prototype . addTransform = function ( name , fn ) {
@@ -297,7 +297,7 @@ SchemaBuilderEntity.prototype.addTransform = function(name, fn) {
297297/**
298298 * Add a new workflow for the entity
299299 * @param {String } name Workflow name, optional.
300- * @param {Function(errorBuilder, model, next([output]), helper , schemaName) } fn
300+ * @param {Function(errorBuilder, model, helper, next([output]), schemaName) } fn
301301 * @return {SchemaBuilderEntity }
302302 */
303303SchemaBuilderEntity . prototype . addWorkflow = function ( name , fn ) {
@@ -318,7 +318,7 @@ SchemaBuilderEntity.prototype.addWorkflow = function(name, fn) {
318318/**
319319 * Add a new composer for the entity
320320 * @param {String } name Composer name, optional.
321- * @param {Function(errorBuilder, output, model, next([output]), helper , entityName) } fn
321+ * @param {Function(errorBuilder, output, model, helper, next([output]), entityName) } fn
322322 * @return {SchemaBuilderEntity }
323323 */
324324SchemaBuilderEntity . prototype . addCompose = function ( name , fn ) {
@@ -339,7 +339,7 @@ SchemaBuilderEntity.prototype.addCompose = function(name, fn) {
339339/**
340340 * Add a new composer for the entity
341341 * @param {String } name Transform name, optional.
342- * @param {Function(errorBuilder, output, model, next([output]), helper , entityName) } fn
342+ * @param {Function(errorBuilder, output, model, helper, next([output]), entityName) } fn
343343 */
344344SchemaBuilderEntity . prototype . addComposer = function ( name , fn ) {
345345 return this . addCompose ( name , fn ) ;
@@ -446,7 +446,6 @@ SchemaBuilderEntity.prototype.get = function(helper, callback) {
446446 } ) ;
447447
448448 return self ;
449-
450449} ;
451450
452451/**
@@ -1202,10 +1201,10 @@ SchemaBuilderEntity.prototype.transform = function(name, model, helper, callback
12021201 return ;
12031202 }
12041203
1205- trans . call ( self , builder , model , function ( result ) {
1204+ trans . call ( self , builder , model , helper , function ( result ) {
12061205 if ( callback )
12071206 callback ( builder . hasError ( ) ? builder : null , result === undefined ? model : result , model ) ;
1208- } , helper , self . name ) ;
1207+ } , self . name ) ;
12091208
12101209 } ) ;
12111210
@@ -1256,10 +1255,10 @@ SchemaBuilderEntity.prototype.compose = function(name, model, helper, callback)
12561255 var output = self . default ( ) ;
12571256 var builder = new ErrorBuilder ( ) ;
12581257
1259- compose . call ( self , builder , output , model , function ( result ) {
1258+ compose . call ( self , builder , output , model , helper , function ( result ) {
12601259 if ( callback )
12611260 callback ( builder . hasError ( ) ? builder : null , result === undefined ? output : result , model ) ;
1262- } , helper , self . name ) ;
1261+ } , self . name ) ;
12631262 } ) ;
12641263
12651264 return self ;
@@ -1315,10 +1314,10 @@ SchemaBuilderEntity.prototype.workflow = function(name, model, helper, callback)
13151314 return ;
13161315 }
13171316
1318- workflow . call ( self , builder , model , function ( result ) {
1317+ workflow . call ( self , builder , model , helper , function ( result ) {
13191318 if ( callback )
13201319 callback ( builder . hasError ( ) ? builder : null , result === undefined ? model : result , model ) ;
1321- } , helper , self . name ) ;
1320+ } , self . name ) ;
13221321 } ) ;
13231322
13241323 return self ;
0 commit comments