Skip to content

Commit 0094cf3

Browse files
committed
wrap path helpers in anon function to ensure $ value, correct module params Fixes jquery-archive#5448
1 parent d48fbca commit 0094cf3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

js/navigation/history.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
//>>description: Manages a stack of history entries. Used exclusively by the Navigation Manager
33
//>>label: History Manager
44
//>>group: Navigation
5-
define([ "jquery", "./../jquery.mobile.ns", "./path" ], function( $ ) {
5+
define([ "jquery", "./../jquery.mobile.ns", "./path" ], function( jQuery ) {
66
//>>excludeEnd("jqmBuildExclude");
77

8-
(function( $ ) {
8+
(function( $, undefined ) {
99
var path = $.mobile.path;
1010

1111
$.mobile.History = function( stack, index ) {

js/navigation/method.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//>>description: A wrapper for the primary Navigator and History objects in jQuery Mobile
33
//>>label: Navigate Method
44
//>>group: Navigation
5-
define([ "jquery", "./path", "./history", "./navigator" ], function( $ ) {
5+
define([ "jquery", "./path", "./history", "./navigator" ], function( jQuery ) {
66
//>>excludeEnd("jqmBuildExclude");
77

88
(function( $, undefined ) {

js/navigation/navigator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ define(["jquery",
66
"./../jquery.mobile.ns",
77
"../events/navigate",
88
"./path",
9-
"./history" ], function( $ ) {
9+
"./history" ], function( jQuery ) {
1010
//>>excludeEnd("jqmBuildExclude");
11+
1112
(function( $, undefined ) {
1213
var path = $.mobile.path;
1314

js/navigation/path.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
//>>group: Navigation
55
define([
66
"jquery",
7-
"./../jquery.mobile.ns" ], function( $ ) {
7+
"./../jquery.mobile.ns" ], function( jQuery ) {
88
//>>excludeEnd("jqmBuildExclude");
99

10+
(function( $, undefined ) {
1011
var path, documentBase, $base, dialogHashKey = "&ui-state=dialog";
1112

1213
$.mobile.path = path = {
@@ -348,6 +349,7 @@ define([
348349
path.getDocumentBase = function( asParsedObject ) {
349350
return asParsedObject ? $.extend( {}, path.documentBase ) : path.documentBase.href;
350351
};
352+
})( jQuery );
351353

352354
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
353355
});

0 commit comments

Comments
 (0)