示例#1
0
 function(event){
     // Prepare
     var $this = $(this),
         url = $this.attr('href'),
         title = $this.attr('title')||null;
     // Continue as normal for cmd clicks etc
     if ( event.which == 2 || event.metaKey ) { return true; }
     // Ajaxify this link
     History.pushState(null, title, url);
     event.preventDefault();
     return false;
 }
示例#2
0
文件: mapState.js 项目: PyBulls/OTM2
 setSearch: function (otmSearch) {
     if (!_.isEqual(otmSearch, state.search)) {
         state.search = otmSearch;
         History.pushState(state, document.title, getUrlFromCurrentState());
     }
 },
示例#3
0
	pushState: function(data, title, url) {
		return History.pushState(data, title, url);
	},
示例#4
0
 FitzRoy.prototype.pushState = function(data, title, url){
     History.pushState(data, title, url);
 };
示例#5
0
 .onValue(function (url) {
     History.pushState(null, '', url);
 });