From 846af5845b020bc67babf6e62f000e9f0a249307 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 4 May 2021 09:49:29 -0800 Subject: [PATCH] fromStateObject should be static, https://github.com/phetsims/ratio-and-proportion/issues/385 --- js/common/model/RAPRatioTuple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/model/RAPRatioTuple.js b/js/common/model/RAPRatioTuple.js index 33e46211..f5eee454 100644 --- a/js/common/model/RAPRatioTuple.js +++ b/js/common/model/RAPRatioTuple.js @@ -141,7 +141,7 @@ class RAPRatioTuple { * @param {Object} stateObject see toStateObject * @returns {RAPRatioTuple} */ - fromStateObject( stateObject ) { + static fromStateObject( stateObject ) { return new RAPRatioTuple( stateObject.antecedent, stateObject.consequent ); } }