Changeset 487 for Dev/trunk/src/node_modules/tv4/tv4.async-jquery.js
- Timestamp:
- 03/05/14 22:44:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/node_modules/tv4/tv4.async-jquery.js
r484 r487 4 4 if (typeof (tv4.asyncValidate) === 'undefined') { 5 5 tv4.syncValidate = tv4.validate; 6 tv4.validate = function (data, schema, callback, checkRecursive ) {6 tv4.validate = function (data, schema, callback, checkRecursive, banUnknownProperties) { 7 7 if (typeof (callback) === 'undefined') { 8 return this.syncValidate(data, schema, checkRecursive );8 return this.syncValidate(data, schema, checkRecursive, banUnknownProperties); 9 9 } else { 10 return this.asyncValidate(data, schema, callback, checkRecursive );10 return this.asyncValidate(data, schema, callback, checkRecursive, banUnknownProperties); 11 11 } 12 12 }; 13 tv4.asyncValidate = function (data, schema, callback, checkRecursive ) {13 tv4.asyncValidate = function (data, schema, callback, checkRecursive, banUnknownProperties) { 14 14 var $ = jQuery; 15 var result = tv4.validate(data, schema, checkRecursive );15 var result = tv4.validate(data, schema, checkRecursive, banUnknownProperties); 16 16 if (!tv4.missing.length) { 17 17 callback(result, tv4.error); … … 28 28 // When all requests done, try again 29 29 $.when.apply($, missingSchemas).done(function () { 30 var result = tv4.asyncValidate(data, schema, callback, checkRecursive );30 var result = tv4.asyncValidate(data, schema, callback, checkRecursive, banUnknownProperties); 31 31 }); 32 32 }
Note: See TracChangeset
for help on using the changeset viewer.