Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 7b475e8

Browse files
committed
Pagecontainer: updating transitions for bootstrap
1 parent ba76873 commit 7b475e8

File tree

4 files changed

+36
-25
lines changed

4 files changed

+36
-25
lines changed

js/widgets/pagecontainer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
// Browser globals
3939
factory( jQuery );
4040
}
41-
<<<<<<< 55d1ef47bd2f60ed10701a2e519bcfa3b0d80404
42-
})( function( $ ) {
43-
$.widget( "mobile.pagecontainer", {
44-
version: "@VERSION",
45-
=======
4641
} )( function( $ ) {
4742

4843
// These variables make all page containers use the same queue and only navigate one at a time
@@ -54,7 +49,6 @@ var pageTransitionQueue = [],
5449

5550
$.widget( "mobile.pagecontainer", {
5651
version: "@VERSION",
57-
>>>>>>> Page: Style fixes powered by esformatter
5852

5953
options: {
6054
theme: "a",
Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
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+
} );

tests/unit/init/no-autoinit-page-transitions-tests.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4+
<title>Transition test</title>
45
<script src="../../../external/jquery/jquery.js"></script>
56
<script src="../../jquery.testHelper.js"></script>
67
<script>

tests/unit/init/no_autoinit_page_core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ define( [ "qunit", "jquery" ], function( QUnit, $ ) {
33
QUnit.asyncTest( "resetActivePageHeight() will be called when page is initialized late", function( assert ) {
44
var resetActivePageHeightCallCount = 0;
55

6-
expect( 1 );
6+
assert.expect( 1 );
77

88
$( document ).on( "mobileinit", function() {
99
$.mobile.autoInitializePage = false;

0 commit comments

Comments
 (0)