Roo/bootstrap/UploadCropbox.js
[roojs1] / roojs-core-debug.js
index 14c9770..28ed6a9 100644 (file)
@@ -63,6 +63,7 @@ Roo.apply = function(o, c, defaults){
         isMac = (ua.indexOf("macintosh") != -1 || ua.indexOf("mac os x") != -1),
         isLinux = (ua.indexOf("linux") != -1),
         isSecure = window.location.href.toLowerCase().indexOf("https") === 0,
+        isIOS = /iphone|ipad\./.test(ua),
         isTouch =  (function() {
             try {  
                 document.createEvent("TouchEvent");  
@@ -630,6 +631,8 @@ Roo.factory(conf, Roo.data);
         /** @type Boolean */
         isMac : isMac,
         /** @type Boolean */
+        isIOS : isIOS,
+        /** @type Boolean */
         isTouch : isTouch,
 
         /**
@@ -6576,6 +6579,9 @@ Roo.onReady(function(){
     if(Roo.isLinux){
         cls.push("roo-linux");
     }
+    if(Roo.isIOS){
+        cls.push("roo-ios");
+    }
     if(Roo.isBorderBox){
         cls.push('roo-border-box');
     }
@@ -12867,9 +12873,6 @@ Roo.extend(Roo.util.MixedCollection, Roo.util.Observable, {
             o = arguments[0];
             key = this.getKey(o);
         }
-        Roo.log(this);
-        Roo.log(o);
-        Roo.log(key);
         if(typeof key == "undefined" || key === null){
             this.length++;
             this.items.push(o);