You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2014/12/12 06:41:12 UTC
[6/8] portals-pluto git commit: minor change in portletHubImpl to use
addEventListener for popstate event
minor change in portletHubImpl to use addEventListener for popstate event
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/015eb709
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/015eb709
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/015eb709
Branch: refs/heads/PortletHub
Commit: 015eb709b32cb100d5acec015975e95fd518d4d8
Parents: 180fce3
Author: Scott Nicklous <ms...@apache.org>
Authored: Wed Dec 10 16:22:45 2014 +0100
Committer: Scott Nicklous <ms...@apache.org>
Committed: Wed Dec 10 16:22:45 2014 +0100
----------------------------------------------------------------------
pluto-portal/src/main/webapp/portletHubImpl.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/015eb709/pluto-portal/src/main/webapp/portletHubImpl.js
----------------------------------------------------------------------
diff --git a/pluto-portal/src/main/webapp/portletHubImpl.js b/pluto-portal/src/main/webapp/portletHubImpl.js
index b271ce5..a3df75c 100644
--- a/pluto-portal/src/main/webapp/portletHubImpl.js
+++ b/pluto-portal/src/main/webapp/portletHubImpl.js
@@ -762,7 +762,7 @@ var portlet = portlet || {};
* Handler for history event that is fired when the back button is pressed.
*/
if (doHistory) {
- window.onpopstate = function (ev) {
+ window.addEventListener('popstate', function (ev) {
if (ev.state) {
console.log("onpopstate fired. State = " + ev.state.substr(0, 30) + " ...<more>");
updateWhenIdle().then(function (doUpdate) {
@@ -770,7 +770,7 @@ var portlet = portlet || {};
doUpdate(upids);
});
}
- };
+ });
}