@@ -275,14 +275,14 @@ global.MODEL = (name) => F.model(name);
275275global . $$$ = global . GETSCHEMA = ( group , name , fn , timeout ) => framework_builders . getschema ( group , name , fn , timeout ) ;
276276global . CREATE = ( group , name ) => framework_builders . getschema ( group , name ) . default ( ) ;
277277global . SCRIPT = ( body , value , callback , param ) => F . script ( body , value , callback , param ) ;
278- global . UID = ( ) => UIDGENERATOR . date + ( UIDGENERATOR . index ++ ) . padLeft ( 4 , '0' ) + UIDGENERATOR . instance + ( UIDGENERATOR . index % 2 ? 1 : 0 ) ;
279278global . SINGLETON = ( name , def ) => SINGLETONS [ name ] || ( SINGLETONS [ name ] = ( new Function ( 'return ' + ( def || '{}' ) ) ) ( ) ) ;
280279global . EACHSCHEMA = ( group , fn ) => framework_builders . eachschema ( group , fn ) ;
281280global . FUNCTION = ( name ) => F . functions [ name ] ;
282281global . ROUTING = ( name ) => F . routing ( name ) ;
283282global . SCHEDULE = ( date , each , fn , param ) => F . schedule ( date , each , fn , param ) ;
284283global . FINISHED = ( stream , callback ) => framework_internal . onFinished ( stream , callback ) ;
285284global . DESTROY = ( stream ) => framework_internal . destroyStream ( stream ) ;
285+ global . UID = ( ) => UIDGENERATOR . date + ( ++ UIDGENERATOR . index ) . padLeft ( 4 , '0' ) + UIDGENERATOR . instance + ( UIDGENERATOR . index % 2 ? 1 : 0 ) ;
286286
287287global . $CREATE = function ( schema ) {
288288 schema = parseSchema ( schema ) ;
0 commit comments