(x, y)
| 146 | // On the first call, attaches some event handlers. Then whenever it gets called, it creates a |
| 147 | // zone around the touchstart where clicks will get busted. |
| 148 | function preventGhostClick(x, y) { |
| 149 | if (!touchCoordinates) { |
| 150 | $rootElement[0].addEventListener('click', onClick, true); |
| 151 | $rootElement[0].addEventListener('touchstart', onTouchStart, true); |
| 152 | touchCoordinates = []; |
| 153 | } |
| 154 | |
| 155 | lastPreventedTime = Date.now(); |
| 156 | |
| 157 | checkAllowableRegions(touchCoordinates, x, y); |
| 158 | } |
| 159 | |
| 160 | directive.compile = function(element , attrs, transclude) { |
| 161 | if($famous.util.isFaElement(element)) { |
no test coverage detected