Sha256: 82900e79ff134f27312594b1ad46eb6353dbe8e3b4df57b943ad0e3823473a2e

Contents?: true

Size: 734 Bytes

Versions: 8

Compression:

Stored size: 734 Bytes

Contents

//>>built
define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(_1,_2){
var ua=navigator.userAgent;
_2.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);
_2.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);
if(ua.match(/(iPhone|iPod|iPad)/)){
var p=RegExp.$1.replace(/P/,"p");
var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";
var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));
_2.add(p,os,undefined,true);
_2.add("iphone",os,undefined,true);
}
if(_2("webkit")){
_2.add("touch",(typeof _1.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!_2("android"),undefined,true);
}
return _2;
});

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/mobile/sniff.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/mobile/sniff.js
dojox-rails-0.11.0 vendor/assets/javascripts/mobile/sniff.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/mobile/sniff.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/mobile/sniff.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/mobile/sniff.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/mobile/sniff.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/mobile/sniff.js