2010-11-09 21:58:28 +00:00
|
|
|
<?php
|
2011-09-22 06:19:37 +00:00
|
|
|
$type = 'text/javascript';
|
|
|
|
|
$files = array(
|
2011-11-10 00:00:25 +00:00
|
|
|
'LICENSE-INFO.txt',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.ui.widget.js',
|
|
|
|
|
'jquery.mobile.widget.js',
|
2010-11-17 16:14:07 +00:00
|
|
|
'jquery.mobile.media.js',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.mobile.support.js',
|
2011-02-18 20:38:51 +00:00
|
|
|
'jquery.mobile.vmouse.js',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.mobile.event.js',
|
|
|
|
|
'jquery.mobile.hashchange.js',
|
2011-01-23 06:31:16 +00:00
|
|
|
'jquery.mobile.page.js',
|
2010-11-19 03:52:35 +00:00
|
|
|
'jquery.mobile.core.js',
|
2010-11-25 11:13:51 +00:00
|
|
|
'jquery.mobile.navigation.js',
|
2011-07-28 23:15:48 +00:00
|
|
|
'jquery.mobile.navigation.pushstate.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.
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 21:06:10 +00:00
|
|
|
'jquery.mobile.transition.js',
|
2011-08-08 18:40:26 +00:00
|
|
|
'jquery.mobile.degradeInputs.js',
|
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 23:05:35 +00:00
|
|
|
'jquery.mobile.dialog.js',
|
|
|
|
|
'jquery.mobile.page.sections.js',
|
|
|
|
|
'jquery.mobile.collapsible.js',
|
|
|
|
|
'jquery.mobile.fieldContain.js',
|
|
|
|
|
'jquery.mobile.grid.js',
|
|
|
|
|
'jquery.mobile.navbar.js',
|
|
|
|
|
'jquery.mobile.listview.js',
|
|
|
|
|
'jquery.mobile.listview.filter.js',
|
|
|
|
|
'jquery.mobile.nojs.js',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.mobile.forms.checkboxradio.js',
|
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 23:05:35 +00:00
|
|
|
'jquery.mobile.forms.button.js',
|
|
|
|
|
'jquery.mobile.forms.slider.js',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.mobile.forms.textinput.js',
|
2011-08-08 19:52:32 +00:00
|
|
|
'jquery.mobile.forms.select.custom.js',
|
2010-11-09 21:58:28 +00:00
|
|
|
'jquery.mobile.forms.select.js',
|
|
|
|
|
'jquery.mobile.buttonMarkup.js',
|
|
|
|
|
'jquery.mobile.controlGroup.js',
|
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 23:05:35 +00:00
|
|
|
'jquery.mobile.links.js',
|
|
|
|
|
'jquery.mobile.fixHeaderFooter.js',
|
2011-09-07 22:08:12 +00:00
|
|
|
'jquery.mobile.fixHeaderFooter.native.js',
|
2011-02-13 07:13:49 +00:00
|
|
|
'jquery.mobile.init.js'
|
2010-11-09 21:58:28 +00:00
|
|
|
);
|
|
|
|
|
|
2011-09-22 06:19:37 +00:00
|
|
|
require_once('../combine.php');
|