Ver Fonte

Remove Fallback for Android Buttons

@soyjavi há 14 anos atrás
pai
commit
0141d4c4d0
2 ficheiros alterados com 2 adições e 23 exclusões
  1. 2 21
      src/Lungo.Fallback.js
  2. 0 2
      src/boot/Lungo.Boot.Events.js

+ 2 - 21
src/Lungo.Fallback.js

@@ -9,16 +9,6 @@
 
 LUNGO.Fallback = (function(lng, undefined) {
 
-    var CLASS = lng.Constants.CLASS;
-
-    var androidButtons = function() {
-    	environment = lng.Core.environment();
-        if (environment.isMobile && environment.os.name === 'android') {
-            lng.dom(document.body).on('touchstart', '.button', _addClassActiveToButton);
-            lng.dom(document.body).on('touchend', '.button', _removeClassActiveToButton);
-        }
-    };
-
     var androidInputs = function(article_id, active) {
         environment = lng.Core.environment();
         if (environment.isMobile && environment.os.name === 'android' && environment.os.version < '4') {
@@ -31,7 +21,7 @@ LUNGO.Fallback = (function(lng, undefined) {
     };
 
     var positionFixed = function(sections) {
-    	environment = lng.Core.environment();
+        environment = lng.Core.environment();
         if (environment.isMobile && environment.os.name === 'ios' && environment.os.version >= '4.2') {
             sections.style('position', 'fixed');
         }
@@ -45,18 +35,9 @@ LUNGO.Fallback = (function(lng, undefined) {
         input.setAttribute('disabled', 'disabled');
     };
 
-    var _addClassActiveToButton = function(element) {
-        lng.dom(this).addClass(CLASS.ACTIVE);
-    };
-
-    var _removeClassActiveToButton = function(element) {
-        lng.dom(this).removeClass(CLASS.ACTIVE);
-    };
-
     return {
-    	androidButtons: androidButtons,
         androidInputs: androidInputs,
-    	positionFixed: positionFixed
+        positionFixed: positionFixed
     }
 
 })(LUNGO);

+ 0 - 2
src/boot/Lungo.Boot.Events.js

@@ -33,8 +33,6 @@ LUNGO.Boot.Events = (function(lng, undefined) {
         lng.dom(window).on(resize, _changeOrientation);
         lng.dom(SELECTORS.HREF_TARGET_FROM_ASIDE).tap(_loadTargetFromAside);
         lng.dom(SELECTORS.HREF_TARGET).tap(_loadTarget);
-
-        lng.Fallback.androidButtons();
     };
 
     var _iScroll = function(event) {