dist rebuild

This commit is contained in:
Adam Bradley
2014-01-20 21:35:30 -06:00
parent f0af48a7f6
commit 4da45d703d
4 changed files with 12 additions and 13 deletions

View File

@@ -54,7 +54,6 @@ angular.module('ionic', [
// Angular deps
'ngAnimate',
'ngTouch',
'ngSanitize',
'ui.router'
]);

View File

File diff suppressed because one or more lines are too long

16
dist/js/ionic.js vendored
View File

@@ -1931,34 +1931,34 @@ window.ionic = {
return false;
}
function tapPolyfill(e) {
function tapPolyfill(orgEvent) {
// if the source event wasn't from a touch event then don't use this polyfill
if(!e.gesture || e.gesture.pointerType !== "touch" || !e.gesture.srcEvent) return;
if(!orgEvent.gesture || orgEvent.gesture.pointerType !== "touch" || !orgEvent.gesture.srcEvent) return;
// An internal Ionic indicator for angular directives that contain
// elements that normally need poly behavior, but are already processed
// (like the radio directive that has a radio button in it, but handles
// the tap stuff itself). This is in contrast to preventDefault which will
// mess up other operations like change events and such
if(e.alreadyHandled) {
return;
}
e = e.gesture.srcEvent; // evaluate the actual source event, not the created event by gestures.js
if(orgEvent.alreadyHandled) return;
var e = orgEvent.gesture.srcEvent; // evaluate the actual source event, not the created event by gestures.js
var ele = e.target;
while(ele) {
if( ele.tagName === "INPUT" || ele.tagName === "TEXTAREA" || ele.tagName === "SELECT" ) {
orgEvent.alreadyHandled = true;
return inputTapPolyfill(ele, e);
} else if( ele.tagName === "LABEL" ) {
if(ele.control) {
orgEvent.alreadyHandled = true;
return inputTapPolyfill(ele.control, e);
}
} else if( ele.tagName === "A" || ele.tagName === "BUTTON" ) {
ionic.trigger('click', {
target: ele
});
orgEvent.alreadyHandled = true;
e.stopPropagation();
e.preventDefault();
return false;
@@ -1979,7 +1979,7 @@ window.ionic = {
}
// global tap event listener polyfill for HTML elements that were "tapped" by the user
ionic.on("tap", tapPolyfill, window);
ionic.on("tap", tapPolyfill, document);
})(this, document, ionic);
;

View File

File diff suppressed because one or more lines are too long