pjax-base.js revision 5c4be14430d3cf06e67f48d6b8397eb0804b5b3a
originalRoot = getRoot(),
EVT_NAVIGATE = 'navigate';
function getRoot() {
}
// PjaxBase is a mixin for Controller.
function PjaxBase() {}
// -- Properties -----------------------------------------------------------
// -- Lifecycle Methods ----------------------------------------------------
initializer: function () {
this._pjaxRoot = originalRoot;
this._pjaxBindUI();
},
destructor: function () {
},
// -- Public Prototype Methods ---------------------------------------------
getContent: function (responseText) {
var content = {},
if (contentSelector) {
} else {
}
if (titleSelector) {
if (titleNode) {
}
}
return content;
},
// Scroll to the top of the page. The timeout ensures that the
// scroll happens after navigation begins, so that the current
// scroll position will be restored if the user clicks the back
// button.
setTimeout(function () {
}, 1);
}
},
// -- Protected Prototype Methods ------------------------------------------
_normalizePath: function (path) {
var dots = '..',
slash = '/',
if (!path) {
return path;
}
stack = [];
} else if (part) {
}
}
// Append a slash if necessary.
normalized += slash;
}
return normalized;
},
_pjaxBindUI: function () {
if (this.html5) {
}
},
_resolvePath: function (path) {
if (!path) {
return root;
}
},
_resolveUrl: function (url) {
var self = this;
});
},
// -- Protected Event Handlers ---------------------------------------------
_defNavigateFn: function (e) {
},
_onLinkClick: function (e) {
// Allow the native behavior on middle/right-click, or when Ctrl or
// Command are pressed.
// Do nothing if there's no matching route for this URL.
e.preventDefault();
this.fire(EVT_NAVIGATE, {
originEvent: e,
});
}
};
value: null
},
linkSelector: {
writeOnce: 'initOnly'
},
scrollToTop: {
value: true
},
value: 'title'
}
};