Skip to content

Commit

Permalink
Also detect embedded (UIWebView) mobile Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
madrobby committed Feb 10, 2010
1 parent 6839886 commit 5cb5ee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Also detect embedded (UIWebView) mobile Safari. (Thomas Fuchs)

* Avoid object creation and an unnecessary function call in `Class#addMethods`, when working around JScript DontEnum bug. Replace with feature test and a simple boolean check at runtime. (kangax)

* Optimize Element#immediateDescendants. (kangax, Tobie Langel)
Expand Down
2 changes: 1 addition & 1 deletion src/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var Prototype = {
Opera: isOpera,
WebKit: ua.indexOf('AppleWebKit/') > -1,
Gecko: ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') === -1,
MobileSafari: /Apple.*Mobile.*Safari/.test(ua)
MobileSafari: /Apple.*Mobile/.test(ua)
}
})(),

Expand Down

0 comments on commit 5cb5ee4

Please sign in to comment.