Skip to content

Commit

Permalink
Merge pull request #2 from micromata/fix-strict-mode-compatibility
Browse files Browse the repository at this point in the history
Fix strict mode compatibility
  • Loading branch information
lucasconstantino authored Jun 19, 2016
2 parents eb10161 + c12b435 commit 6725652
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
23 changes: 16 additions & 7 deletions angular-slug.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,31 @@
* @license MIT License, http://www.opensource.org/licenses/MIT
*/

angular.module('slug', [])
(function() {
'use strict';

angular.module('slug', [])
.provider('slug', slugProvider)
.filter('slug', slugFilter);

slugProvider.$inject = [];
slugFilter.$inject = ['slug'];

/**
* Simple slug wrapper as provider.
*/
.provider('slug', function () {
slug.$get = function () {
function slugProvider() {
slug.$get = function() {
return slug;
}

return slug;
})
}

/**
* Slugifies a given string.
*/
.filter('slug', function (slug) {
function slugFilter(slug) {
return slug;
});
}

})();
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-slug",
"main": "angular-slug.js",
"version": "0.0.3",
"version": "0.0.4",
"authors": [
"Lucas Constantino Silva"
],
Expand All @@ -22,7 +22,7 @@
"tests"
],
"dependencies": {
"slug": "~0.8.0",
"angular": "~1.3.15"
"slug": "~0.9.1",
"angular": "~1.5.7"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-slug",
"version": "0.0.3",
"version": "0.0.4",
"repository": {
"type" : "git",
"url" : "http://github.com/lucasconstantino/angular-slug.git"
Expand All @@ -14,7 +14,7 @@
"author": "Lucas Constantino Silva",
"license": "MIT",
"dependencies": {
"angular": "^1.3.15",
"slug": "^0.8.0"
"angular": "^1.5.7",
"slug": "^0.9.1"
}
}

0 comments on commit 6725652

Please sign in to comment.