min/angular/ao-framework/ao.etc.js
// I bind the JavaScript events to the scope.
I bind the JavaScript events to the scope.
I bind the JavaScript events to the scope .
function link( scope, element, attributes ) {
			scope.subview = null;
			element.on(
				"click",
				function handleClickEvent( event ) {
					if ( element[ 0 ] !== event.target ) {
						return;
					}
					scope.$apply( aoModals.reject );
				}
			);
			$rootScope.$on(
				"aoModals.open",
				function handleModalOpenEvent( event, modalType ) {
					scope.subview = modalType;
				}
			);
			$rootScope.$on(
				"aoModals.close",
				function handleModalCloseEvent( event ) {
					scope.subview = null;
				}
			);
		}
function link ( scope , element , attributes ) { scope . subview = null ; element . on ( "click" , function handleClickEvent ( event ) { if ( element [ 0 ] !== event . target ) { return ; } scope . $apply ( aoModals . reject ) ; } ) ; $rootScope . $on ( "aoModals.open" , function handleModalOpenEvent ( event , modalType ) { scope . subview = modalType ; } ) ; $rootScope . $on ( "aoModals.close" , function handleModalCloseEvent ( event ) { scope . subview = null ; } ) ; }
I bind the JavaScript events to the scope.
I bind the JavaScript events to the scope .
// I define which modal window is being rendered. By convention, // the subview will be the same as the type emitted by the modals // service object. // If the user clicks directly on the backdrop (ie, the modals // container), consider that an escape out of the modal, and reject // it implicitly. // Listen for "open" events emitted by the modals service object. // Listen for "close" events emitted by the modals service object.