Author: smaisonneuve Date: 2015-06-09 15:35:28 +0000 (Tue, 09 Jun 2015) New Revision: 1663 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1663 Log: [Refactor] Turning StartupInformation into es6 class Modified: oipf/lib/js/impl/model/StartupInformation.js Modified: oipf/lib/js/impl/model/StartupInformation.js =================================================================== --- oipf/lib/js/impl/model/StartupInformation.js 2015-06-09 15:34:02 UTC (rev 1662) +++ oipf/lib/js/impl/model/StartupInformation.js 2015-06-09 15:35:28 UTC (rev 1663) @@ -1,35 +1,31 @@ -/* +/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ -var StartupInformation = Class.extend({ - - /* - * Description: - * The mechanism used to obtain the url property. - * Any of the STARTUP_URL_* values defined in section 7.3.3.1 are valid. - * - * Visibility Type : readonly String - */ - urlSource: null, - - /* - * Description: - * The URL used at startup of the OITF. - * If the urlSource property is STARTUP_URL_NONE then - * the value of this property SHALL be NULL. - * If the urlSource property is STARTUP_URL_PRECONFIGURED then - * the value of this property SHALL be undefined. - * - * Visibility Type : readonly String - */ - url: null, - - init: function(urlSource, url) { +class StartupInformation { + + constructor(urlSource, url) { + /* + * Description: + * The mechanism used to obtain the url property. + * Any of the STARTUP_URL_* values defined in section 7.3.3.1 are valid. + * + * Visibility Type : readonly String + */ this.urlSource = urlSource; + + /* + * Description: + * The URL used at startup of the OITF. + * If the urlSource property is STARTUP_URL_NONE then + * the value of this property SHALL be NULL. + * If the urlSource property is STARTUP_URL_PRECONFIGURED then + * the value of this property SHALL be undefined. + * + * Visibility Type : readonly String + */ this.url = url; } - -}); +}
participants (1)
-
smaisonneuveďź users.nuiton.org