I guess this *does* present a problem we didn't think of (or if we did I didn't see the discussion): what if a parent scope has a close defined, and the user tries to call *that* `close` inside his alert?  It's a rather common name.  It's an unlikely problem, but to avoid it we could namespace the function: `scope.uiAlertClose = function() {}`