Return state

This commit is contained in:
Luis Leiva 2017-12-06 00:14:59 +01:00
parent d3c1096ae9
commit 0d69f927d8
3 changed files with 30 additions and 0 deletions

View File

@ -138,6 +138,7 @@
snapshot.onload = function() {
draw(this, state.strokes);
};
return this;
};
/**
* Init instance. Currently just (re)attach key event listeners.

28
jsdoc.json Normal file
View File

@ -0,0 +1,28 @@
{
"source": {
"include": [
"jsketch.js",
"sketchable.js",
"sketchable.utils.js",
"sketchable.memento.js",
"jquery.sketchable.js",
"jquery.sketchable.memento.js",
"README.md"
]
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": true,
"minami": {
"staticFiles": {
"paths": ["./figs/"]
}
}
},
"opts": {
"destination": "./docs",
"template": "./node_modules/minami"
}
}

View File

@ -140,6 +140,7 @@
snapshot.onload = function() {
draw(this, state.strokes);
};
return this;
};
/**
* Init instance. Currently just (re)attach key event listeners.