Skip to content

Commit 0f6a2fc

Browse files
committed
Fix exports
1 parent ab78480 commit 0f6a2fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/validate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ empty list will be returned. A validation error will have two properties:
1515
*/
1616
require.def||(require.def=function(deps, factory){module.exports = factory();});
1717
require.def([], function(){
18-
18+
var exports = validate;
1919
// setup primitive classes to be JSON Schema types
2020
String.type = "string";
2121
Boolean.type = "boolean";
@@ -24,8 +24,8 @@ exports.Integer = {type:"integer"};
2424
Object.type = "object";
2525
Array.type = "array";
2626
Date.type = "date";
27-
var exports = validate;
28-
exports.validate = function validate(/*Any*/instance,/*Object*/schema) {
27+
exports.validate = validate;
28+
function validate(/*Any*/instance,/*Object*/schema) {
2929
// Summary:
3030
// To use the validator call JSONSchema.validate with an instance object and an optional schema object.
3131
// If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),

0 commit comments

Comments
 (0)