forked from MarcosRava/model-structure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (23 loc) · 766 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(function (exports, module, define, require) {
var root = this;
var Model = require('./src/model');
var Validator = require('./src/validator');
var ValidationError = require('./src/validation-error.js');
//Model.Model = Model;
Model.Validator = Validator;
Model.ValidationError = ValidationError;
if (exports) {
if (module && module.exports) exports = module.exports = Model;
}
if (this.window && window) {
window.Model = Model;
}
if (define && define.amd) {
define("Model", [], function () { return Model; });
}
})(
typeof exports !== 'undefined' ? exports : null,
typeof module !== 'undefined' ? module : null,
typeof define !== 'undefined' ? define : null,
typeof require !== 'undefined' ? require : null
);