mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
[Fixed Position] Rename accessor
Rename utility function used by fixed position elements to be more accurate. WTD-879.
This commit is contained in:
@ -12,7 +12,7 @@ define(
|
|||||||
* @param {Object} object the object to get/set values upon
|
* @param {Object} object the object to get/set values upon
|
||||||
* @param {string} key the property to get/set
|
* @param {string} key the property to get/set
|
||||||
*/
|
*/
|
||||||
function Accessor(object, key) {
|
function AccessorMutator(object, key) {
|
||||||
return function (value) {
|
return function (value) {
|
||||||
if (arguments.length > 0) {
|
if (arguments.length > 0) {
|
||||||
object[key] = value;
|
object[key] = value;
|
||||||
@ -21,6 +21,6 @@ define(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return Accessor;
|
return AccessorMutator;
|
||||||
}
|
}
|
||||||
);
|
);
|
Reference in New Issue
Block a user