Skip to content

Commit

Permalink
Merge pull request #17 from barneycarroll/config-snapshot-capture
Browse files Browse the repository at this point in the history
Proposed fix for #16
  • Loading branch information
barneycarroll committed Mar 22, 2016
2 parents 363d8f5 + c7c9b94 commit 2b0d485
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/exitable.es3.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
var config = node.attrs.config

// Map the root / first child element to the component instance
node.attrs.config = function superConfig( el ){
node.attrs.config = function superConfig( el, init, ctxt, snapshot ){
roots.set( ctrl, el )

if( history.has( ctrl )
history.set( ctrl, snapshot )

if( config )
return config.apply( this, arguments )
Expand Down

0 comments on commit 2b0d485

Please sign in to comment.