2015-08-26 15:58:49 +02:00
|
|
|
H5P.Version = (function () {
|
2015-02-26 16:16:20 +01:00
|
|
|
/**
|
|
|
|
* Make it easy to keep track of version details.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @namespace H5P
|
|
|
|
* @param {String} version
|
|
|
|
*/
|
|
|
|
function Version(version) {
|
|
|
|
var versionSplit = version.split('.', 3);
|
|
|
|
|
|
|
|
// Public
|
|
|
|
this.major = versionSplit[0];
|
|
|
|
this.minor = versionSplit[1];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Public. Custom string for this object.
|
|
|
|
*
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
this.toString = function () {
|
|
|
|
return version;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
return Version;
|
|
|
|
})();
|