/** * ionRadioFix - fixes a bug in iOS 9 UIWebView that breaks the tilde selector in CSS. To * use this fix, include it after your Ionic bundle JS. * * Note: due to Angular directive override limitations, you'll need to change any reference * to to to apply this patched radio button. * * Also, make sure to add the new CSS from the second part of this gist. */ angular.module("ionic").directive("ionRadioFix",function(){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,template:'',compile:function(e,n){if(n.icon){var i=e.find("i") i.removeClass("ion-checkmark").addClass(n.icon)}var a=e.find("input") return angular.forEach({name:n.name,value:n.value,disabled:n.disabled,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-disabled":n.ngDisabled,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,n){angular.isDefined(e)&&a.attr(n,e)}),function(e,n,i){e.getValue=function(){return e.ngValue||i.value}}}}})