Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jquery.stayInWebApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

;(function($) {
//extend the jQuery object, adding $.stayInWebApp() as a function
$.extend({
$.extend($, {
stayInWebApp: function(selector) {
//detect iOS full screen mode
if(("standalone" in window.navigator) && window.navigator.standalone) {
Expand Down Expand Up @@ -39,4 +39,4 @@
}
} //end stayInWebApp func
});
})( jQuery );
})( window.jQuery || window.Zepto );
2 changes: 1 addition & 1 deletion jquery.stayInWebApp.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* jQuery stayInWebApp Plugin
* version: 0.4 (2012-06-19)
*/
(function($){$.extend({stayInWebApp:function(b){"standalone"in window.navigator&&window.navigator.standalone&&(b||(b="a"),$("body").delegate(b,"click",function(b){if($(this).attr("target")==void 0||$(this).attr("target")==""||$(this).attr("target")=="_self"){var c=$(this).attr("href");if(!c.match(/^http(s?)/g))b.preventDefault(),self.location=c}}))}})})(jQuery);
(function(a){a.extend(a,{stayInWebApp:function(b){"standalone"in window.navigator&&window.navigator.standalone&&(b||(b="a"),a("body").delegate(b,"click",function(b){if(a(this).attr("target")==undefined||a(this).attr("target")==""||a(this).attr("target")=="_self"){var c=a(this).attr("href");c.match(/^http(s?)/g)||(b.preventDefault(),self.location=c)}}))}})})(window.jQuery||window.Zepto);