function Preference (props) {
  Logger.AssertTrue("name" in props && "value" in props,
    "Preference must have both name and value");

  this.name = props.name;
  this.value = props.value;
}
/**
 * Preference class constructor
 *
 * Initializes instance properties.
 */
Preference class constructor
Initializes instance properties.
Preference class constructor Initializes instance properties .
function Preference (props) {
  Logger.AssertTrue("name" in props && "value" in props,
    "Preference must have both name and value");
  this.name = props.name;
  this.value = props.value;
}
function Preference ( props ) { Logger . AssertTrue ( "name" in props && "value" in props , "Preference must have both name and value" ) ; this . name = props . name ; this . value = props . value ; }
Preference class constructor
 Initializes instance properties.
Preference class constructor Initializes instance properties .