Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Add annotations to the non minified file 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed May 20, 2016
1 parent 75a4816 commit 33df073
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions angular-confirm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* angular-confirm
* https://github.com/Schlogen/angular-confirm
* @version v1.2.4 - 2016-05-11
* @version v1.2.5 - 2016-05-20
* @license Apache
*/
(function (root, factory) {
Expand All @@ -15,7 +15,7 @@
}
}(this, function (angular) {
angular.module('angular-confirm', ['ui.bootstrap.modal'])
.controller('ConfirmModalController', function ($scope, $uibModalInstance, data) {
.controller('ConfirmModalController', ["$scope", "$uibModalInstance", "data", function ($scope, $uibModalInstance, data) {
$scope.data = angular.copy(data);

$scope.ok = function (closeMessage) {
Expand All @@ -29,7 +29,7 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])
$uibModalInstance.dismiss(dismissMessage);
};

})
}])
.value('$confirmModalDefaults', {
template: '<div class="modal-header"><h3 class="modal-title">{{data.title}}</h3></div>' +
'<div class="modal-body">{{data.text}}</div>' +
Expand All @@ -44,7 +44,7 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])
cancel: 'Cancel'
}
})
.factory('$confirm', function ($uibModal, $confirmModalDefaults) {
.factory('$confirm', ["$uibModal", "$confirmModalDefaults", function ($uibModal, $confirmModalDefaults) {
return function (data, settings) {
var defaults = angular.copy($confirmModalDefaults);
settings = angular.extend(defaults, (settings || {}));
Expand All @@ -63,8 +63,8 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])

return $uibModal.open(settings).result;
};
})
.directive('confirm', function ($confirm, $timeout) {
}])
.directive('confirm', ["$confirm", "$timeout", function ($confirm, $timeout) {
return {
priority: 1,
restrict: 'A',
Expand Down Expand Up @@ -121,5 +121,5 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])

}
}
});
}]);
}));
2 changes: 1 addition & 1 deletion angular-confirm.min.js

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

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-confirm-modal",
"main": "angular-confirm.js",
"version": "1.2.4",
"version": "1.2.5",
"ignore": [
"test",
"package.json",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-confirm",
"version": "1.2.4",
"version": "1.2.5",
"description": "Angular Confirm Modal",
"main": "angular-confirm.min.js",
"scripts": {
Expand Down

0 comments on commit 33df073

Please sign in to comment.