Skip to content

Commit

Permalink
[Fix] Use chaining syntax. Fixes anderslarsson#5
Browse files Browse the repository at this point in the history
  • Loading branch information
szabyg committed May 21, 2015
1 parent cef7d6f commit 8715c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions js/ngPopover.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var module = angular.module('ngPopover', []);
angular.module('ngPopover', [])

module.provider('ngPopover', function () {
provider('ngPopover', function () {

var open = false;
var smallScreenBreakpoint = 500;
Expand Down Expand Up @@ -259,10 +259,9 @@ module.provider('ngPopover', function () {
}
}
}]
});
})


module.directive('ngPopover', ['ngPopover', function(ngPopover) {
.directive('ngPopover', ['ngPopover', function(ngPopover) {

return {
restrict: 'A',
Expand All @@ -271,4 +270,4 @@ module.directive('ngPopover', ['ngPopover', function(ngPopover) {
}
}

}]);
}]);
2 changes: 1 addition & 1 deletion js/ngPopover.min.js

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

0 comments on commit 8715c5d

Please sign in to comment.