Skip to content

Commit

Permalink
fix(popup): Backwards compatible remove popup from DOM, closes #851
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Mar 31, 2014
1 parent bfcf265 commit 441a21c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/ext/angular/src/service/ionicPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ angular.module('ionic.service.popup', ['ionic.service.templateLoad'])
popup.el.classList.add('popup-hidden');

$timeout(function() {
popup.el.remove();
popup.el.parentNode.removeChild(popup.el);
}, 400);
};

Expand Down
37 changes: 36 additions & 1 deletion js/ext/angular/test/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,42 @@
<button class="button button-balanced" ng-click="showPrompt()">Prompt</button>
<button class="button button-balanced" ng-click="showPasswordPrompt()">Password Prompt</button>
<button class="button button-positive" ng-click="showAlert()">Alert</button>
<div style="height: 3000px; width: 50px; background-color: rgba(0,0,0,0.5);"></div>
<div class="list">
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
<a class="item" href="#">Item</a>
</div>
</ion-content>

<script id="popup-template.html" type="text/ng-template">
Expand Down

0 comments on commit 441a21c

Please sign in to comment.