jquery-mobile/js
Kin Blas 19c06952fd Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
The expected prototype for a transitionHandler is as follows:

function handler(name, reverse, $to, $from)

The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.

In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:

$.mobile.defaultTransitionHandler = myTransitionHandler;

The changes to make all this necessary are as follows:

- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.

- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.

- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.

- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.

- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
..
index.php Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute. 2011-04-26 14:06:10 -07:00
jquery.js updated to jQuery 1.5.2 2011-03-31 18:09:46 -04:00
jquery.mobile.buttonMarkup.js I broke button states in my last checkin. I was passing in the wrong element (document) into the new function that finds the button element. 2011-04-21 10:56:04 -07:00
jquery.mobile.collapsible.js Modified the vclick handler code in navgation.js so that it doesn't place the ui-btn-active class on any links meant for interactivity. 2011-04-22 10:53:24 -07:00
jquery.mobile.controlGroup.js changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jquery.mobile.core.js whitespace in mobile core 2011-03-31 23:39:09 -07:00
jquery.mobile.dialog.js Merge branch 'master' into fastclick 2011-03-27 21:00:22 -07:00
jquery.mobile.event.js Fixed yet another duplicate tap event bug. 2011-04-06 23:39:41 +08:00
jquery.mobile.fieldContain.js "this" in this context is already a jquery object 2011-01-12 05:30:56 +08:00
jquery.mobile.fixHeaderFooter.js made sure a couple of variables are locally scoped. Fixes #1403 2011-04-12 15:11:14 -04:00
jquery.mobile.forms.button.js Merge branch 'master' into fastclick 2011-03-27 21:00:22 -07:00
jquery.mobile.forms.checkboxradio.js fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328 2011-04-05 23:47:34 -07:00
jquery.mobile.forms.select.js added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453 2011-04-21 22:30:39 -07:00
jquery.mobile.forms.slider.js Make navigation feel more responsive through feedback, even though it actually uses the click event again for actual page changes. 2011-04-07 14:41:45 -04:00
jquery.mobile.forms.textinput.js changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jquery.mobile.grid.js This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Fixes #1107. Thanks Richard! 2011-03-14 20:26:20 -04:00
jquery.mobile.hashchange.js Renamed files. 2010-10-07 11:30:48 -04:00
jquery.mobile.init.js changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jquery.mobile.listview.filter.js Added "filterPlaceholder" option to allow configuring filter listview placeholder text. Documented here: jquerymobile.com/test/#docs/lists/docs-lists.html. Fixes #1227 2011-03-27 14:01:59 -04:00
jquery.mobile.listview.js Fix for issue 1458 - Listview thumbnails aren't rendering correctly. 2011-04-14 23:36:58 -07:00
jquery.mobile.media.js Page min-height was being calculated with JS and it was far too tall. This moves the values into CSS with values that are aimed towards iPhone (as this is addressing an iPhone transitions issue with the address bar show/hide). 2011-02-03 17:22:23 -05:00
jquery.mobile.navbar.js Merge branch 'master' into fastclick 2011-03-29 09:03:05 -07:00
jquery.mobile.navigation.js Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute. 2011-04-26 14:06:10 -07:00
jquery.mobile.page.js Incorporating mariozaizar's changes to add a backBtnTheme option (null by default) to the page plugin. A few edits were needed to support namespacing and a proper null default so theme inheritance is the default. 2011-03-27 18:29:45 -04:00
jquery.mobile.support.js switched to boolean check and removed the second value. Now this is only true in old webos, where it should be. 2011-04-14 18:10:22 -04:00
jquery.mobile.transition.js Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute. 2011-04-26 13:53:11 -07:00
jquery.mobile.vmouse.js Fix from @brukhabtu for issue 1492 - Errors when trying to delete DOM elements. 2011-04-20 18:06:21 -07:00
jquery.mobile.widget.js changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jquery.ui.widget.js Renamed files. 2010-10-07 11:30:48 -04:00