This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myObject = (function() { | |
// private stuff | |
var private = 'foo'; | |
return { | |
publicFunction: function() {alert(private);}, | |
public: 'bar' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.maximize = function() { | |
var $body = $('body'); | |
// prevent scrollstart and scrollstop events from fireing in jquery mobile | |
if ($.event.special.scrollstart) { | |
$.event.special.scrollstart.enabled = false; | |
} | |
// expand the body so there's enough room for the address bar to scroll out of view |