Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nova funcao de setup permite receber try e skip button

  • Loading branch information...
commit ca2cd66680d126cd2a35b92e7cbaf530cc745f25 1 parent dd91573
@guilhermesilveira guilhermesilveira authored
View
9 app/assets/javascripts/gnarus_exercise/attempt.js
@@ -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);
+ }
}
};
}
View
2  lib/gnarus_exercise/version.rb
@@ -1,3 +1,3 @@
module GnarusExercise
- VERSION = "1.0.5"
+ VERSION = "1.0.6"
end
Please sign in to comment.
Something went wrong with that request. Please try again.