Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separating Responsibilities #10

Open
3 tasks
jugglinmike opened this issue Sep 25, 2014 · 0 comments
Open
3 tasks

Separating Responsibilities #10

jugglinmike opened this issue Sep 25, 2014 · 0 comments
Milestone

Comments

@jugglinmike
Copy link
Collaborator

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
@jugglinmike jugglinmike modified the milestone: The Director Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant