Permalink
Browse files

nova funcao de setup permite receber try e skip button

  • Loading branch information...
1 parent dd91573 commit ca2cd66680d126cd2a35b92e7cbaf530cc745f25 @guilhermesilveira guilhermesilveira committed May 16, 2012
Showing with 8 additions and 3 deletions.
  1. +7 −2 app/assets/javascripts/gnarus_exercise/attempt.js
  2. +1 −1 lib/gnarus_exercise/version.rb
@@ -29,8 +29,13 @@ var gnarus = {
viewChanged(r);
});
},
- setup : function() {
- $('#try').click(this.process);
+ setup : function(tryButton, skipButton) {
+ if(tryButton===undefined) {
+ $('#try').click(this.process);
+ } else {
+ tryButton.click(this.process);
+ skipButton.click(this.skip);
+ }
}
};
}
@@ -1,3 +1,3 @@
module GnarusExercise
- VERSION = "1.0.5"
+ VERSION = "1.0.6"
end

0 comments on commit ca2cd66

Please sign in to comment.