Skip to content

Commit

Permalink
property -> Property throughout documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 30, 2017
1 parent fd0aa16 commit 5ecb56d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions js/DerivedProperty.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2013-2016, University of Colorado Boulder

/**
* A DerivedProperty is computed based on other properties. This implementation inherits from Property to (a) simplify
* A DerivedProperty is computed based on other Properties. This implementation inherits from Property to (a) simplify
* implementation and (b) ensure it remains consistent. Note that the setters should not be called directly, so the
* setters (set, reset and es5 setter) throw an error if used directly.
*
Expand Down Expand Up @@ -31,8 +31,8 @@ define( function( require ) {
}

/**
* @param {Property[]} dependencies - properties that this property's value is derived from
* @param {function} derivation - function that derives this property's value, expects args in the same order as dependencies
* @param {Property[]} dependencies - Properties that this Property's value is derived from
* @param {function} derivation - function that derives this Property's value, expects args in the same order as dependencies
* @param {Object} [options] - see Property
* @constructor
*/
Expand Down Expand Up @@ -81,7 +81,7 @@ define( function( require ) {
// @public
dispose: function() {

// Unlink from dependent properties
// Unlink from dependent Properties
for ( var i = 0; i < this.dependencies.length; i++ ) {
var dependency = this.dependencies[ i ];
dependency.unlink( this.dependencyListeners[ i ] );
Expand All @@ -101,7 +101,7 @@ define( function( require ) {
* @override
* @public
*/
set: function( value ) { throw new Error( 'Cannot set values directly to a derived property, tried to set: ' + value ); },
set: function( value ) { throw new Error( 'Cannot set values directly to a DerivedProperty, tried to set: ' + value ); },

/**
* Override the mutators to provide an error message. These should not be called directly, the value should only be modified
Expand All @@ -111,7 +111,7 @@ define( function( require ) {
* @override
* @public
*/
set value( newValue ) { throw new Error( 'Cannot es5-set values directly to a derived property, tried to set: ' + newValue ); },
set value( newValue ) { throw new Error( 'Cannot es5-set values directly to a DerivedProperty, tried to set: ' + newValue ); },

/**
* Override get value as well to satisfy the linter which wants get/set pairs (even though it just uses the same code as the superclass).
Expand All @@ -127,11 +127,11 @@ define( function( require ) {
* @override
* @public
*/
reset: function() { throw new Error( 'Cannot reset a derived property directly' ); }
reset: function() { throw new Error( 'Cannot reset a DerivedProperty directly' ); }
}, {

/**
* Creates a derived boolean property whose value is true iff firstProperty's value is equal to secondProperty's
* Creates a derived boolean Property whose value is true iff firstProperty's value is equal to secondProperty's
* value.
* @public
*
Expand All @@ -145,7 +145,7 @@ define( function( require ) {
},

/**
* Creates a derived boolean property whose value is true iff every input property value is true.
* Creates a derived boolean Property whose value is true iff every input Property value is true.
* @public
*
* @param {Array.<Property.<boolean>>} properties
Expand All @@ -157,7 +157,7 @@ define( function( require ) {
},

/**
* Creates a derived boolean property whose value is true iff any input property value is true.
* Creates a derived boolean Property whose value is true iff any input Property value is true.
* @public
*
* @param {Array.<Property.<boolean>>} properties
Expand Down

0 comments on commit 5ecb56d

Please sign in to comment.