History log of /yui3/src/pjax/js/pjax-base.js
Revision Date Author Comments Expand
949810c1763954d26649cd5f0728f6e0e4bc0803 20-Mar-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Added docs for Pjax's `navigateOnHash` attribute.

163e61ed440508c2502fa8d8958f859bd47b018e 14-Mar-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Tweaked Pjax API docs to inlcude @since tags.

aca9c8e4d87ccc8e7d3b74325ad0c9a2052122b2 18-Feb-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Added `navigateOnHash` attribute to PjaxBase. This allow Pjax to be configured to fire its `navigate` event when the new URL being navigated to only differs from the current URL by its hash.

8b8817187a09d276a5807c8236dd5a8bcd558c44 15-Feb-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Pjax now handles <a href="#in-page"> links properly, like a browser.

21948550396091425d266cadfcbee0fb384203c0 27-Jan-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Updated PjaxBase's `_resolvePath()` method to be more robust.

60db31d89ad2131181aba62bed53be01bbf816f9 19-Jan-2012 Eric Ferraiuolo <eferraiuolo@gmail.com>

Removed out of scope references to `location`. Went through the all YUI source and removed any references to the `location` object that were created outside of the function in which they were being used.

d1cef3d275f4a07ff460440052381d69c5c75186 04-Jan-2012 Ryan Grove <ryan@wonko.com>

Pjax API docs.

71ac727838f7a80c81381e168bfa53f79c2791f8 14-Dec-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

API doc updates for Y.App and Y.PjaxBase. Feedback from users in #yui surfaced the need for more clarity around Y.App's `viewContainer` attribute.

ada82c4ef0c7cb8d4f382c1831121f433025f5e5 29-Nov-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Major revamp of PjaxBase and its navigation features. Also API docs. This is pretty much a re-write of PjaxBase to be more aligned with the way we want navigation and URLs to be handled as outlined by this: https://gist.github.com/1386827 PjaxBase is now fully API documented, complete with code-comments. There is also some minor updates to the unit tests.

f76bbd073ad690e1823bb6b89461a961511ed0f8 28-Nov-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Major revamp of PjaxBase and its navigation features. Also API docs. This is pretty much a re-write of PjaxBase to be more aligned with the way we want navigation and URLs to be handled as outlined by this: https://gist.github.com/1386827 PjaxBase is now fully API documented, complete with code-comments. There is also some minor updates to the unit tests.

d211e428c72bcc2a3b208324a875631a172981c8 15-Nov-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Wrapped PjaxBase's call to `_pjaxBindUI()` which `html5` check. This makes it easier for things using PjaxBase to call its event-binding method even when not an HTML5 browser.

b5390ca8d67763a8c17c8dd688695774fb89826b 14-Nov-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

PjaxBase now resolves URLs correctly by using the current root path. Browsers always resolve URLs against the current value of `window.location.pathname` and so should PjaxBase. Updated Pjax tests to restore the URL after completing each test. Manual tests were updated to be correctly select the new contented that was loaded by Pjax.

e86e0d8d1dd6334c2b9e74cafcf94072c0194add 18-Oct-2011 Ryan Grove <ryan@wonko.com>

Rename Controller to Router. Y.Controller is now an alias for Y.Router (ditto the controller module), but this alias will be removed in a future version of YUI.

1062717e23acfa772a49fb14c7c2eb649f6c8654 18-Oct-2011 Ryan Grove <ryan@wonko.com>

Update Pjax to deal with Controller changes.

dddcee22f2bdaa26a98ad09656033c32582a3dcf 10-Oct-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Renamed Pjax's `load()` method to `navigate()` which fires `navigate`. Pjax's `load()` method was replaced with a `navigate(url, options)` method and when called will fire the `navigate` event. "Navigate" is a higher-level concept than "load" and more accurately applies to Pjax's role. The Pjax tests have also been updated to reflect this change.

a2e1eb70dfea87676ca9ac74c3fd81043233f249 04-Oct-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Improved PjaxBase's URL resolving.

c3b553f9ed1cf7dc7229587a0f3f19181a844513 04-Oct-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Moved content related methods and attributes from PjaxBase to Pjax. PjaxBase does not use `getContent()`, `contentSelector`, or `titleSelector` internally; it makes more sense for these content related methods and attributes to live on Pjax.

53cb96778680bc58d1c95bf78bf085a5beea1ee6 04-Oct-2011 Eric Ferraiuolo <eferraiuolo@gmail.com>

Changed the process that Pjax uses to resolve link clicks to `save()`. The process was broken before, this process is more correct.

5c4be14430d3cf06e67f48d6b8397eb0804b5b3a 30-Sep-2011 Ryan Grove <ryan@wonko.com>

Refactor Pjax into pjax-base, pjax, and pjax-plugin modules. PjaxBase is meant to be a mixin for Controller. Pjax extends Controller and mixes in PjaxBase to provide a usable Pjax implementation. Plugin.Pjax extends Pjax and can be plugged into a Node instance.