Permalink
Browse files

wrap path helpers in anon function to ensure $ value, correct module …

…params Fixes #5448
  • Loading branch information...
1 parent d48fbca commit 0094cf32911bd9da3acbe68104f8a00d3d587174 @johnbender johnbender committed Jan 15, 2013
Showing with 8 additions and 5 deletions.
  1. +2 −2 js/navigation/history.js
  2. +1 −1 js/navigation/method.js
  3. +2 −1 js/navigation/navigator.js
  4. +3 −1 js/navigation/path.js
@@ -2,10 +2,10 @@
//>>description: Manages a stack of history entries. Used exclusively by the Navigation Manager
//>>label: History Manager
//>>group: Navigation
-define([ "jquery", "./../jquery.mobile.ns", "./path" ], function( $ ) {
+define([ "jquery", "./../jquery.mobile.ns", "./path" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
-(function( $ ) {
+(function( $, undefined ) {
var path = $.mobile.path;
$.mobile.History = function( stack, index ) {
@@ -2,7 +2,7 @@
//>>description: A wrapper for the primary Navigator and History objects in jQuery Mobile
//>>label: Navigate Method
//>>group: Navigation
-define([ "jquery", "./path", "./history", "./navigator" ], function( $ ) {
+define([ "jquery", "./path", "./history", "./navigator" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {
@@ -6,8 +6,9 @@ define(["jquery",
"./../jquery.mobile.ns",
"../events/navigate",
"./path",
- "./history" ], function( $ ) {
+ "./history" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
+
(function( $, undefined ) {
var path = $.mobile.path;
@@ -4,9 +4,10 @@
//>>group: Navigation
define([
"jquery",
- "./../jquery.mobile.ns" ], function( $ ) {
+ "./../jquery.mobile.ns" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
var path, documentBase, $base, dialogHashKey = "&ui-state=dialog";
$.mobile.path = path = {
@@ -348,6 +349,7 @@ define([
path.getDocumentBase = function( asParsedObject ) {
return asParsedObject ? $.extend( {}, path.documentBase ) : path.documentBase.href;
};
+})( jQuery );
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});

0 comments on commit 0094cf3

Please sign in to comment.