/* * jQuery history plugin * * Copyright (c) 2006-2009 Taku Sano (Mikage Sawatari) * Copyright (c) 2010 Takayuki Miwa * * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */ (function($) { var locationWrapper = { put: function(hash, win) { (win || window).location.hash = this.encoder(hash); }, get: function(win) { var hash = ((win || window).location.hash).replace(/^#/, ''); try { return $.browser.mozilla ? hash : decodeURIComponent(hash); } catch (error) { return hash; } }, encoder: encodeURIComponent }; var iframeWrapper = { id: "__jQuery_history", init: function() { var html = '