Enforce consistency

This commit is contained in:
Luis Leiva 2017-11-13 09:12:11 +01:00
parent 99b790f926
commit e60f672e2b
2 changed files with 1 additions and 3 deletions

View File

@ -84,8 +84,6 @@
timestamp: (new Date).getTime(),
// Save a pointer to the drawing canvas (jSketch instance).
sketch: sketch,
// Save a pointer to the drawing canvas (jSketch instance).
sketchable: this,
// Save also a pointer to the given options.
options: options
};

View File

@ -207,7 +207,7 @@
}
// Expose public API: all Sketchable instances will have these methods.
deepExtend(instance, {
deepExtend(Sketchable.prototype, {
/**
* Goes back to the previous CANVAS state, if available.
* @memberof Sketchable