Skip to content

Commit

Permalink
Setup VSCode Debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
DavinAhn committed Aug 13, 2018
1 parent eade63c commit 6b61fd5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
"type": "node",
"request": "launch",
"name": "Start",
"protocol": "inspector",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"./test/index.js",
"--require", "babel-core/register",
"--require", "babel-polyfill",
"--recursive",
"--colors"
],
"runtimeArgs": [
"run-script", "test"
"--nolazy"
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/model/SpineItem.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Item from './Item';

class SpineItem extends Item {
static UNKNOWN_INDEX = -1

constructor(rawObj) {
super(rawObj);
this.spineIndex = rawObj.spineIndex || SpineItem.UNKNOWN_INDEX;
Expand All @@ -11,4 +9,6 @@ class SpineItem extends Item {
}
}

SpineItem.UNKNOWN_INDEX = -1;

export default SpineItem;

0 comments on commit 6b61fd5

Please sign in to comment.