[Seaside] JQueryMobile - small correction in JQMUserAgent

Tomas Kukol tomas.kukol at gmail.com
Wed Sep 12 09:27:42 UTC 2012


Hi list.

I have found a small bug in JQueryMobile class JQMUserAgent. Sometimes
a user agent string is not filled and the code throws an exception.

Can you change the code FROM:

JQMUserAgent>>isIOS
	^ #('iPhone' 'iOS' 'iPod' 'iPad')
		anySatisfy: [ :each |
			self userAgentString includesSubString: each ]


TO this version?

JQMUserAgent>>isIOS
	^ #('iPhone' 'iOS' 'iPod' 'iPad')
		anySatisfy: [ :each | self userAgentString isEmptyOrNil not and: [
self userAgentString includesSubString: each ] ]


More information about the seaside mailing list