Skip to content

Commit

Permalink
Fixed #120 : renamed the function to onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Oct 1, 2012
1 parent 2cb5989 commit cbfdb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GUI/GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* // output something in the console
* // when the object is clicked
* onClicked:function()
* onClick:function()
* {
* console.log("clicked!");
* // don't propagate the event
Expand Down Expand Up @@ -96,7 +96,7 @@
clicked : function() {
if (this.isClickable) {
this.updated = true;
return this.onClicked();
return this.onClick();
}
},

Expand All @@ -107,7 +107,7 @@
* @public
* @function
*/
onClicked : function() {
onClick : function() {

return true;
},
Expand Down

0 comments on commit cbfdb81

Please sign in to comment.