Skip to content

Commit

Permalink
Turtle MVC component (#2309)
Browse files Browse the repository at this point in the history
* Separate out Turtles class in a new file

* Create TurtlesModel class and add, to Turtles, references to its methods

* Create TurtlesView class and add, to Turtle, references to its methods

* Add to Turtles, variables of model and view, and removing the objects

* Distribute methods and variables of Turtles to view and model

* Getters for TurtlesModel members

* Add view getters

* Fix variable declaration in updateNotation
  • Loading branch information
meganindya authored Jun 4, 2020
1 parent 54deef7 commit 294002a
Show file tree
Hide file tree
Showing 5 changed files with 1,307 additions and 1,138 deletions.
1 change: 1 addition & 0 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ function Activity() {
"activity/trash",
"activity/boundary",
"activity/turtle",
"activity/turtles",
"activity/palette",
"activity/note",
"activity/protoblocks",
Expand Down
2 changes: 1 addition & 1 deletion js/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4846,7 +4846,7 @@ class Logo {

if (typeof note === "object") {
// If it is hertz, add a markup
markup = "";
let markup = "";
try {
for (let i = 0; i < note.length; i++) {
if (typeof note[i] === "number") {
Expand Down
Loading

0 comments on commit 294002a

Please sign in to comment.