angular-ui/ui-ace — pull request #46 by ndibek (2014-05-23 14:26:45+00:00)
Title: Watch Handler Gets Called Twice

Watch handler is called twice this causes onload to get called twice which can cause problems. According to https://docs.angularjs.org/api/ng/type/$rootScope.Scope#methods_$watch we can add a check to only handle changes.

Added check to watch of attrs.uiAce so that the handler only gets called when something actually changes