CB-12895 : updated src files to use eslint format

This commit is contained in:
Audrey So
2017-07-14 14:19:05 -07:00
parent 80342b0ddd
commit 16c4325fef
8 changed files with 219 additions and 225 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ function takePicture (success, error, opts) {
input.name = 'files[]';
input.onchange = function (inputEvent) {
var reader = new FileReader();
var reader = new FileReader(); /* eslint no-undef : 0 */
reader.onload = function (readerEvent) {
input.parentNode.removeChild(input);
@@ -54,8 +54,8 @@ function capture (success, errorCallback, opts) {
var targetWidth = opts[3];
var targetHeight = opts[4];
targetWidth = targetWidth == -1 ? 320 : targetWidth;
targetHeight = targetHeight == -1 ? 240 : targetHeight;
targetWidth = targetWidth === -1 ? 320 : targetWidth;
targetHeight = targetHeight === -1 ? 240 : targetHeight;
var video = document.createElement('video');
var button = document.createElement('button');