Skip to content

Commit

Permalink
Merge pull request #147 from arthur-xavier/master
Browse files Browse the repository at this point in the history
Make showModal fetch body element on every call to work properly
  • Loading branch information
dwmkerr authored Jun 10, 2016
2 parents d9949a3 + 6cc717a commit 18003d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dst/angular-modal-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
module.factory('ModalService', ['$animate', '$document', '$compile', '$controller', '$http', '$rootScope', '$q', '$templateRequest', '$timeout',
function($animate, $document, $compile, $controller, $http, $rootScope, $q, $templateRequest, $timeout) {

// Get the body of the document, we'll add the modal to this.
var body = angular.element($document[0].body);

function ModalService() {

var self = this;
Expand Down Expand Up @@ -53,6 +50,9 @@

self.showModal = function(options) {

// Get the body of the document, we'll add the modal to this.
var body = angular.element($document[0].body);

// Create a deferred we'll resolve when the modal is ready.
var deferred = $q.defer();

Expand Down
2 changes: 1 addition & 1 deletion dst/angular-modal-service.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18003d6

Please sign in to comment.