Skip to content

Commit 6725652

Browse files
Merge pull request #2 from micromata/fix-strict-mode-compatibility
Fix strict mode compatibility
2 parents eb10161 + c12b435 commit 6725652

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

angular-slug.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,31 @@
44
* @license MIT License, http://www.opensource.org/licenses/MIT
55
*/
66

7-
angular.module('slug', [])
7+
(function() {
8+
'use strict';
9+
10+
angular.module('slug', [])
11+
.provider('slug', slugProvider)
12+
.filter('slug', slugFilter);
13+
14+
slugProvider.$inject = [];
15+
slugFilter.$inject = ['slug'];
816

917
/**
1018
* Simple slug wrapper as provider.
1119
*/
12-
.provider('slug', function () {
13-
slug.$get = function () {
20+
function slugProvider() {
21+
slug.$get = function() {
1422
return slug;
1523
}
16-
1724
return slug;
18-
})
25+
}
1926

2027
/**
2128
* Slugifies a given string.
2229
*/
23-
.filter('slug', function (slug) {
30+
function slugFilter(slug) {
2431
return slug;
25-
});
32+
}
33+
34+
})();

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-slug",
33
"main": "angular-slug.js",
4-
"version": "0.0.3",
4+
"version": "0.0.4",
55
"authors": [
66
"Lucas Constantino Silva"
77
],
@@ -22,7 +22,7 @@
2222
"tests"
2323
],
2424
"dependencies": {
25-
"slug": "~0.8.0",
26-
"angular": "~1.3.15"
25+
"slug": "~0.9.1",
26+
"angular": "~1.5.7"
2727
}
2828
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-slug",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"repository": {
55
"type" : "git",
66
"url" : "http://github.com/lucasconstantino/angular-slug.git"
@@ -14,7 +14,7 @@
1414
"author": "Lucas Constantino Silva",
1515
"license": "MIT",
1616
"dependencies": {
17-
"angular": "^1.3.15",
18-
"slug": "^0.8.0"
17+
"angular": "^1.5.7",
18+
"slug": "^0.9.1"
1919
}
2020
}

0 commit comments

Comments
 (0)