Exactly, otherwise if we open multiple times the popup `this.element` will be compiled multiple times. I think we just need to make the test like this:
`if (!this.scope) {
     if (!scope) {
       scope = $rootScope    
     }     
     this.scope = scope.$new();
     this.scope.options = this.options;
     $compile(this.element)(this.scope);
}