diff --git a/js/ext/angular/src/directive/ionicList.js b/js/ext/angular/src/directive/ionicList.js index 548bf9627e6..f3e0cf6d3bb 100644 --- a/js/ext/angular/src/directive/ionicList.js +++ b/js/ext/angular/src/directive/ionicList.js @@ -24,14 +24,14 @@ angular.module('ionic.ui.list', ['ngAnimate']) template: '
', diff --git a/js/ext/angular/src/directive/ionicTouch.js b/js/ext/angular/src/directive/ionicTouch.js index 8277524ddb4..ae428666dfd 100644 --- a/js/ext/angular/src/directive/ionicTouch.js +++ b/js/ext/angular/src/directive/ionicTouch.js @@ -45,7 +45,19 @@ angular.module('ionic.ui.touch', []) }; - }]); + }]) + + .directive('stopEvent', function () { + function stopEvent(e) { + e.stopPropagation(); + } + return { + restrict: 'A', + link: function (scope, element, attr) { + element.bind(attr.stopEvent, stopEvent); + } + }; + }); })(window.angular, window.ionic); diff --git a/js/ext/angular/test/list.html b/js/ext/angular/test/list.html index c3320148fc5..69a787286a7 100644 --- a/js/ext/angular/test/list.html +++ b/js/ext/angular/test/list.html @@ -109,7 +109,7 @@