function listener(ev) {
      if (element[0].hasAttribute('disabled') || rgCtrl.isDisabled()) return;

      scope.$apply(function() {
        rgCtrl.setViewValue(attr.value, ev && ev.type);
      });
    }
function listener(ev) {
      if (element[0].hasAttribute('disabled') || rgCtrl.isDisabled()) return;

      scope.$apply(function() {
        rgCtrl.setViewValue(attr.value, ev && ev.type);
      });
    }
function listener ( ev ) { if ( element [ 0 ] . hasAttribute ( 'disabled' ) || rgCtrl . isDisabled ( ) ) return ; scope . $apply ( function ( ) { rgCtrl . setViewValue ( attr . value , ev && ev . type ) ; } ) ; }
On click functionality.
On click functionality .
The listener for the change event