h5p-php-library/js/h5p-version.js

28 lines
507 B
JavaScript
Raw Normal View History

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