Skip to content

Commit ce1d167

Browse files
committed
New changes.
1 parent a08422e commit ce1d167

5 files changed

Lines changed: 98 additions & 263 deletions

File tree

builders.js

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121

2222
/**
2323
* @module FrameworkBuilders
24-
* @version 1.9.7
24+
* @version 2.0.0
2525
*/
2626

2727
'use strict';
2828

29-
var UNDEFINED = 'undefined';
30-
var FUNCTION = 'function';
31-
var OBJECT = 'object';
32-
var STRING = 'string';
33-
var NUMBER = 'number';
34-
var BOOLEAN = 'boolean';
35-
var REQUIRED = 'The field "@" is required.';
36-
var DEFAULT_SCHEMA = 'default';
37-
var SKIP = { $$schema: true, $$result: true, $callback: true, $$async: true };
29+
const UNDEFINED = 'undefined';
30+
const FUNCTION = 'function';
31+
const OBJECT = 'object';
32+
const STRING = 'string';
33+
const NUMBER = 'number';
34+
const BOOLEAN = 'boolean';
35+
const REQUIRED = 'The field "@" is required.';
36+
const DEFAULT_SCHEMA = 'default';
37+
const SKIP = { $$schema: true, $$result: true, $callback: true, $$async: true };
3838

3939
var schemas = {};
4040
var transforms = { pagination: {}, error: {}, objectbuilder: {}, transformbuilder: {} };
@@ -149,13 +149,6 @@ function SchemaBuilderEntity(parent, name, obj, validator, properties) {
149149
this.CurrentSchemaInstance = function(){};
150150
this.CurrentSchemaInstance.prototype = new SchemaInstance();
151151
this.CurrentSchemaInstance.prototype.$$schema = this;
152-
153-
var self = this;
154-
155-
setTimeout(function() {
156-
if (self.onValidation)
157-
OBSOLETE(self.name, 'Instead of "SchemaBuilderEntity.onValidation()" use "SchemaBuilderEntity.setValidate()"');
158-
}, 2000);
159152
}
160153

161154
/**
@@ -453,11 +446,6 @@ SchemaBuilderEntity.prototype.setValidate = function(properties, fn) {
453446
return self;
454447
};
455448

456-
SchemaBuilderEntity.prototype.setValidation = function(properties, fn) {
457-
OBSOLETE(this.name, 'Instead of "SchemaBuilderEntity.setValidation()" use "SchemaBuilderEntity.setValidate()"');
458-
return this.setValidate(properties, fn);
459-
};
460-
461449
SchemaBuilderEntity.prototype.setPrefix = function(prefix) {
462450
this.resourcePrefix = prefix;
463451
return this;

changes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
======= 2.0.0 (BETA)
2+
3+
- removed obsolete code
4+
15
======= 1.9.7
26

37
- added: `F.web()` --> alias to F.route()

0 commit comments

Comments
 (0)