1- //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
2- //>>description: Extension that adds transition management support to pagecontainer widget
3- //>>label: Transitions Support for Pagecontainer
1+ /*!
2+ * jQuery Mobile Page Container @VERSION
3+ * http://jquerymobile.com
4+ *
5+ * Copyright jQuery Foundation and other contributors
6+ * Released under the MIT license.
7+ * http://jquery.org/license
8+ */
9+
10+ //>>label: Content Management
411//>>group: Navigation
5- define ( [
6- "jquery" ,
7- "./pagecontainer" ,
12+ //>>description: Widget to create page container which manages pages and transitions
13+ //>>docs: http://api.jquerymobile.com/pagecontainer/
14+ //>>demos: http://demos.jquerymobile.com/@VERSION/navigation/
15+ //>>css.theme: ../css/themes/default/jquery.mobile.theme.css
16+ //>>css.theme: ../css/themes/default/jquery.mobile.theme.css
17+
18+ ( function ( factory ) {
19+ if ( typeof define === "function" && define . amd ) {
20+
21+ // AMD. Register as an anonymous module.
22+ define ( [
23+ "jquery" ,
24+ "./pagecontainer" ,
825
9- // For $.mobile.navigate.history
10- "../navigation/method" ,
11- "../transitions/handlers" ] , function ( jQuery ) {
12- //>>excludeEnd("jqmBuildExclude");
13- ( function ( $ , undefined ) {
26+ // For $.mobile.navigate.history
27+ "../navigation/method" ,
28+ "../transitions/handlers" ] , factory ) ;
29+ } else {
1430
15- $ . widget ( "mobile.pagecontainer" , $ . mobile . pagecontainer , {
31+ // Browser globals
32+ factory ( jQuery ) ;
33+ }
34+ } ) ( function ( $ ) {
35+ return $ . widget ( "mobile.pagecontainer" , $ . mobile . pagecontainer , {
1636 _getTransitionHandler : function ( transition ) {
1737 transition = $ . mobile . _maybeDegradeTransition ( transition ) ;
1838
@@ -28,9 +48,5 @@ $.widget( "mobile.pagecontainer", $.mobile.pagecontainer, {
2848 return ( new TransitionHandler ( transition , reverse , to , from ) ) . transition (
2949 $ . mobile . navigate . history . getActive ( ) . lastScroll || $ . mobile . defaultHomeScroll ) ;
3050 }
31- } ) ;
32-
33- } ) ( jQuery ) ;
34- //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
35- } ) ;
36- //>>excludeEnd("jqmBuildExclude");
51+ } ) ;
52+ } ) ;
0 commit comments