text: define("jira/ajs/persistence",["jira/data/session-storage","jquery","exports"],function(sessionStorage,jQuery,exports){var STORAGE_KEY="AJS.thisPage";exports.nextPage=function(){var data=[];jQuery(window).unload(function(){sessionStorage.setItem(STORAGE_KEY,JSON.stringify(data))});return function(name,value){var replaced;jQuery.each(data,function(){if(this.name===name){this.value=value;replaced=true}});if(!replaced){data.push({name:name,value:value})}}}();exports.thisPage=function(){var i,value,unformattedData,data={};unformattedData=sessionStorage.getItem(STORAGE_KEY);sessionStorage.removeItem(STORAGE_KEY);if(unformattedData){unformattedData=JSON.parse(unformattedData);for(i=0;i<unformattedData.length;i++){data[unformattedData[i].name]=unformattedData[i].value}}return function(name){return data[name]}}()});(function(persistence){AJS.namespace("AJS.nextPage",null,persistence.nextPage);AJS.namespace("AJS.thisPage",null,persistence.thisPage)})(require("jira/ajs/persistence"));