From eb33adfff92d23bcd293aa9cc073211b9428e1fa Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 21 Nov 2017 12:56:52 -0700 Subject: [PATCH] Added JSDoc, see https://github.com/phetsims/faradays-law/issues/86 --- js/faradays-law/view/MagnetNodeWithField.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/faradays-law/view/MagnetNodeWithField.js b/js/faradays-law/view/MagnetNodeWithField.js index 7d7cdac1..99721d48 100644 --- a/js/faradays-law/view/MagnetNodeWithField.js +++ b/js/faradays-law/view/MagnetNodeWithField.js @@ -164,7 +164,11 @@ define( function( require ) { model.magnet.positionProperty.linkAttribute( this, 'translation' ); } - // Create single MagnetNode View + /** + * Creates the magnet node + * @param {Magnet} magnet + * @returns {MagnetNode} + */ var createMagnetNode = function( magnet ) { return new MagnetNode( magnet.flippedProperty.get(), { width: magnet.width,