Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 10, 2017
1 parent 9e1dea2 commit 6ec95f8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions js/GCContent.profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ var profile = {

resourceTags: {
// Files that contain test code.
test: function(/* filename, mid */) {
test: function (/* filename, mid */) {
return false;
},

// Files that should be copied as-is without being modified by the build system.
copyOnly: function(filename, mid) {
copyOnly: function (filename, mid) {
return copyOnly(mid);
},

// Files that are AMD modules.
amd: function(filename, mid) {
amd: function (filename, mid) {
return !copyOnly(mid) && /.js$/.test(filename);
},

// Files that should not be copied when the “mini” compiler flag is set to true.
miniExclude: function(filename, mid) {
miniExclude: function (filename, mid) {
return !(/^GCContent/.test(mid));
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/Store/SeqFeature/GCContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function (
} else if (thisB.gcMode === 'skew') {
score = (ng - nc) / (ng + nc);
}
if(r[Math.floor(r.length/2)] != 'N') {
if (r[Math.floor(r.length / 2)] != 'N') {
var feat = new CoverageFeature({
start: pos + i,
end: pos + i + thisB.windowDelta,
Expand Down
18 changes: 9 additions & 9 deletions js/View/Dialog/WindowSizeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ define([
'dijit/form/Button',
'JBrowse/View/Dialog/WithActionBar'
],
function(
function (
declare,
dom,
on,
Expand All @@ -21,19 +21,19 @@ function(
return declare(ActionBarDialog, {
title: 'Set GC Track options',

constructor: function(args) {
constructor: function (args) {
this.windowSize = args.windowSize || 100;
this.windowDelta = args.windowDelta || 10;
this.gcMode = args.gcMode || 'content';
this.browser = args.browser;
this.setCallback = args.setCallback || function() {};
this.cancelCallback = args.cancelCallback || function() {};
this.setCallback = args.setCallback || function () {};
this.cancelCallback = args.cancelCallback || function () {};
},

_fillActionBar: function(actionBar) {
_fillActionBar: function (actionBar) {
new Button({
label: 'OK',
onClick: dojo.hitch(this, function() {
onClick: dojo.hitch(this, function () {
var windowSize = +this.windowSizeSpinner.getValue();
var windowDelta = +this.windowDeltaSpinner.getValue();
var gcMode = this.gcModeSelect.getValue();
Expand All @@ -47,14 +47,14 @@ function(

new Button({
label: 'Cancel',
onClick: dojo.hitch(this, function() {
onClick: dojo.hitch(this, function () {
this.cancelCallback && this.cancelCallback();
this.hide();
})
}).placeAt(actionBar);
},

show: function(/* callback */) {
show: function (/* callback */) {
dojo.addClass(this.domNode, 'windowSizeDialog');

this.windowSizeSpinner = new NumberSpinner({
Expand Down Expand Up @@ -92,7 +92,7 @@ function(
this.inherited(arguments);
},

hide: function() {
hide: function () {
this.inherited(arguments);
window.setTimeout(dojo.hitch(this, 'destroyRecursive'), 500);
}
Expand Down
12 changes: 6 additions & 6 deletions js/View/Track/GCContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define([
'JBrowse/View/Track/Wiggle/Density',
'JBrowse/Util'
],
function(
function (
declare,
array,
lang,
Expand All @@ -17,7 +17,7 @@ function(
Util
) {
return declare(WiggleDensity, {
constructor: function() {
constructor: function () {
this.store = new GCContent({
store: this.store,
browser: this.browser,
Expand All @@ -26,7 +26,7 @@ function(
gcMode: this.config.gcMode
});
},
_defaultConfig: function() {
_defaultConfig: function () {
return Util.deepUpdate(lang.clone(this.inherited(arguments)), {
min_score: 0,
max_score: 1,
Expand All @@ -38,14 +38,14 @@ function(
logScaleOption: false
});
},
_trackMenuOptions: function() {
_trackMenuOptions: function () {
var track = this;
var options = this.inherited(arguments);
options.push({
label: 'GC Track Options',
onClick: function() {
onClick: function () {
new WindowSize({
setCallback: function(ws, wd, mode) {
setCallback: function (ws, wd, mode) {
track.config.windowSize = ws;
track.config.windowDelta = wd;
track.config.gcMode = mode;
Expand Down
20 changes: 10 additions & 10 deletions js/View/Track/GCContentXY.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define([
'JBrowse/View/Track/Wiggle/XYPlot',
'JBrowse/Util'
],
function(
function (
declare,
array,
lang,
Expand All @@ -17,7 +17,7 @@ function(
Util
) {
return declare(WiggleXY, {
constructor: function() {
constructor: function () {
this.store = new GCContent({
store: this.store,
browser: this.browser,
Expand All @@ -26,7 +26,7 @@ function(
gcMode: this.config.gcMode
});
},
_defaultConfig: function() {
_defaultConfig: function () {
return Util.deepUpdate(lang.clone(this.inherited(arguments)), {
min_score: 0,
max_score: 1,
Expand All @@ -39,14 +39,14 @@ function(
logScaleOption: false
});
},
_trackMenuOptions: function() {
_trackMenuOptions: function () {
var track = this;
var options = this.inherited(arguments);
options.push({
label: 'GC Track Options',
onClick: function() {
onClick: function () {
new WindowSize({
setCallback: function(ws, wd, mode) {
setCallback: function (ws, wd, mode) {
track.config.windowSize = ws;
track.config.windowDelta = wd;
track.config.gcMode = mode;
Expand All @@ -69,15 +69,15 @@ function(
},


fillBlock: function(args) {
fillBlock: function (args) {
var block = args.block;
var blockIndex = args.blockIndex;
var scale = args.scale;
var blur = dojo.create(
'div',
{ className: 'sequence_blur',
innerHTML: '<span class="loading">Loading</span>'
}, block.domNode);
{ className: 'sequence_blur',
innerHTML: '<span class="loading">Loading</span>'
}, block.domNode);

this.heightUpdate(blur.offsetHeight + 2 * blur.offsetTop, blockIndex);

Expand Down

0 comments on commit 6ec95f8

Please sign in to comment.