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

Already on GitHub? Sign in to your account

[Documentation -> Creating Controls] source code need fix. #47

Closed
wadolsh opened this Issue Mar 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants

wadolsh commented Mar 29, 2012

Documentation -> Creating Controls
-> The Basics

handlers: {
down: "downHandler", --> ondown: "downHandler",
up: "upHandler" --> onup: "upHandler"
},


-> Controls in Controls: It’s Those Turtles Again

circleTap: function(inSender, inEvent) {
var lights = {red: "tomato", yellow: "#FFFF80", green: "lightgreen"};
if (this.lastCircle) {
this.lastCircle.setBgColor("black");
}
this.lastCircle.setBgColor(lights[inSender.color]); -> this.lastCircle = inSender;
this.lastCircle = inSender; -> this.lastCircle.setBgColor(lights[inSender.color]);
}

Contributor

unwiredben commented Mar 29, 2012

fixed on web site. Thanks!

@unwiredben unwiredben closed this Mar 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment