Closed valdrinkoshi closed 8 years ago
Fixes #57 by invoking _discoverInfo in position(), constrain(), center(). Like this, each of those methods can be safely invoked and rely on the existence of the _fitInfo object. Previously, it was relying on users calling fit().
_discoverInfo
position(), constrain(), center()
_fitInfo
fit()
a bit of extra whitespace made it in there, otherwise LGTM
Whitespace removed!
Fixes #57 by invoking
_discoverInfo
inposition(), constrain(), center()
. Like this, each of those methods can be safely invoked and rely on the existence of the_fitInfo
object. Previously, it was relying on users callingfit()
.