lib/generators/pakyow/app/templates/public/scripts/ring/components/navigator.js in pakyow-0.10.1 vs lib/generators/pakyow/app/templates/public/scripts/ring/components/navigator.js in pakyow-0.10.2

- old
+ new

@@ -26,10 +26,12 @@ if (typeof history.onpushstate == "function") { history.onpushstate({ state: state }); } if (uri == window.location.pathname) { + pw.component.broadcast(window.context.name + ':navigator:exit'); + window.context = { _state: state, name: 'default', uri: window.location.href }; @@ -83,11 +85,12 @@ window.context = { _state: state, name: state.context, uri: state.r_uri, - container: state.container + container: state.container, + partial: state.partial }; } else { state.r_uri = uri; if (window.context.name !== 'default') { @@ -104,10 +107,11 @@ } else { // navigate in context state.r_uri = document.location.pathname + '#:' + window.context.name + '/' + uri; state.context = window.context.name; state.container = window.context.container; + state.partial = window.context.partial; } } } var opts = { @@ -116,9 +120,13 @@ method: 'get' }; if (state.container) { opts.container = state.container; + } + + if (state.partial) { + opts.partial = state.partial; } window.socket.send(opts, function (payload) { if (state.context) { pw.component.broadcast(state.context + ':navigator:enter', payload);