{"action":"closed","issue":{"url":"https://api.github.com/repos/nolimits4web/Framework7/issues/914","repository_url":"https://api.github.com/repos/nolimits4web/Framework7","labels_url":"https://api.github.com/repos/nolimits4web/Framework7/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Framework7/issues/914/comments","events_url":"https://api.github.com/repos/nolimits4web/Framework7/issues/914/events","html_url":"https://github.com/nolimits4web/Framework7/issues/914","id":144841583,"number":914,"title":"Template7 Data Context lost after page back ","user":{"login":"Donnylai","id":2037949,"avatar_url":"https://avatars.githubusercontent.com/u/2037949?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnylai","html_url":"https://github.com/Donnylai","followers_url":"https://api.github.com/users/Donnylai/followers","following_url":"https://api.github.com/users/Donnylai/following{/other_user}","gists_url":"https://api.github.com/users/Donnylai/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnylai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnylai/subscriptions","organizations_url":"https://api.github.com/users/Donnylai/orgs","repos_url":"https://api.github.com/users/Donnylai/repos","events_url":"https://api.github.com/users/Donnylai/events{/privacy}","received_events_url":"https://api.github.com/users/Donnylai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-03-31T09:28:03Z","updated_at":"2016-11-03T10:09:30Z","closed_at":"2016-11-03T10:09:30Z","body":"Hi, I got the first page load as follows:\n\nvar frontpage = {todayStr: todayStr, todayRoster: todayRoster, chnName:roster.chnName, ...};\n    mainView.router.load({\n        url: 'app/today.html',\n        reload: true,\n        context: {\n          frontpage: frontpage\n        }\n    });\nThen, a page (leave) was invoked as follows:\nvar showLeave = function () {\n    mainView.router.load({\n        url: 'app/leave.html',\n        context: {\n        }\n    });\n}\nWhen page back, if is OK.\nHowever, if another page (leaveform) was invoke in the leave page as follows:\nvar showSickLeave = function () {\n    mainView.router.load({\n        url: 'app/leaveform.html',\n        context: {\n          sickleave: true,\n          todaystr: todaystr\n        }\n    });\n} \nThen, When page back, I got the follow error\nUnhandled exception at line 30, column 803 in eval code\n0x800a138f - JavaScript runtime error: Unable to get property 'chnName' of undefined or null reference\n\n*\\* Where chnName is a context data used in the the today page instead of the leave page.\n*\\* I suppose the page back from the leaveform page will go back to the leave page. I don't know why the 'today' page was evaluated and the data-context is null.\n"}}
{"actor":{"display_login":"nolimits4web"}}