| 1 | define([ |
| 2 | "dojo/_base/kernel", |
| 3 | "dojo/sniff" |
| 4 | ], function(kernel, has){ |
| 5 | |
| 6 | kernel.deprecated("dojox/mobile/sniff", "Use dojo/sniff instead", "2.0"); |
| 7 | |
| 8 | // TODO: remove this in 2.0 |
| 9 | has.add("iphone", has("ios")); |
| 10 | |
| 11 | /*===== |
| 12 | return { |
| 13 | // summary: |
| 14 | // Deprecated: use dojo/sniff instead. |
| 15 | // On iOS, dojox/mobile/sniff sets "iphone" to the same value as "ios" |
| 16 | // for compatibility with earlier versions, but this should be considered deprecated. |
| 17 | // In future versions, "iphone" will be set only when running on an iPhone (not iPad on iPod). |
| 18 | }; |
| 19 | =====*/ |
| 20 | return has; |
| 21 | }); |