You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mole hides itself when it is clicked, but the tasks of "hiding" and
"showing" seems like they should be controlled by the director. We wrote it
this way because we didn't have a director when we started, but now seems like
a good time to "refactor".
mole.js
Define a prototype method called hide
Move the code that hides the mole from its "click" handler to the body
of the new hide method
directory.js
Invoke mole.hide() in each mole's onWhac method
The text was updated successfully, but these errors were encountered:
The mole hides itself when it is clicked, but the tasks of "hiding" and
"showing" seems like they should be controlled by the director. We wrote it
this way because we didn't have a director when we started, but now seems like
a good time to "refactor".
mole.js
hide
of the new
hide
methoddirectory.js
mole.hide()
in each mole'sonWhac
methodThe text was updated successfully, but these errors were encountered: