Commit 1323a8e2 by aamir-khan

ECOM-1472: js nitpick fixes

parent be5a1a33
...@@ -233,7 +233,9 @@ ...@@ -233,7 +233,9 @@
}, },
render: function() { render: function() {
var renderedHtml; var renderedHtml,
$resetBtn,
$captureBtn;
// Set the submit button to disabled by default // Set the submit button to disabled by default
this.setSubmitButtonEnabled( false ); this.setSubmitButtonEnabled( false );
...@@ -245,8 +247,8 @@ ...@@ -245,8 +247,8 @@
); );
$( this.el ).html( renderedHtml ); $( this.el ).html( renderedHtml );
var $resetBtn = this.$el.find('#webcam_reset_button'), $resetBtn = this.$el.find('#webcam_reset_button');
$captureBtn = this.$el.find('#webcam_capture_button'); $captureBtn = this.$el.find('#webcam_capture_button');
// Install event handlers // Install event handlers
$resetBtn.on( 'click', _.bind( this.reset, this ) ); $resetBtn.on( 'click', _.bind( this.reset, this ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment