Skip to content

Instantly share code, notes, and snippets.

@sunkencity
Created November 18, 2010 13:38
Show Gist options
  • Save sunkencity/704976 to your computer and use it in GitHub Desktop.
Save sunkencity/704976 to your computer and use it in GitHub Desktop.
weird id behaviour
diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js
index 86f8472..c9c7e3c 100644
--- a/js/jquery.mobile.js
+++ b/js/jquery.mobile.js
@@ -478,7 +478,7 @@
}
to
- .attr( "id", fileUrl )
+ .attr( "id", fileUrl.replace(".", "") )
.appendTo( $pageContainer );
enhancePage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment