Skip to content

Commit

Permalink
fixes history chain with .draw( )
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jun 15, 2016
1 parent 8cb7b62 commit 360346e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/form/methods/draw.js
Expand Up @@ -49,7 +49,7 @@ module.exports = {
if ( typeof value === "function" && vars.history.chain.length ) {

var changesObject = {}
changes.forEach(function(c){
vars.history.chain.forEach(function(c){
var method = c.method
delete c.method
changesObject[method] = c
Expand Down
2 changes: 1 addition & 1 deletion src/viz/methods/draw.js
Expand Up @@ -39,7 +39,7 @@ module.exports = {
if ( typeof value === "function" && vars.history.chain.length ) {

var changesObject = {}
changes.forEach(function(c){
vars.history.chain.forEach(function(c){
var method = c.method
delete c.method
changesObject[method] = c
Expand Down

0 comments on commit 360346e

Please sign in to comment.