clean scoping add, comment

This commit is contained in:
John Bender 2011-08-22 14:58:42 -07:00
parent 49eeccdde3
commit 2c7789b6a3

View file

@ -6,8 +6,10 @@
*/
( function( $, window ) {
// For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
var self,
pushStateHandler = self = {},
// Scope self to pushStateHandler so we can reference it sanely within the
// methods handed off as event handlers
var pushStateHandler = {},
self = pushStateHandler,
oldRegisterInternalEvents = $.mobile._registerInternalEvents,
$win = $( window );