Skip to content

Commit ce2054c

Browse files
fujiunsyuawerlang
authored andcommitted
Angularjs minification using uglify resulting in js error (#19)
1 parent 0fe2f9f commit ce2054c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

release/angular-responsive-tables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
function wtResponsiveTable() {
1919
return {
2020
restrict: "A",
21-
controller: function($element) {
21+
controller: ['$element', function($element) {
2222
return {
2323
getHeader: function(td) {
2424
var firstHeader = td.parentElement.querySelector("th");
@@ -37,7 +37,7 @@
3737
}
3838
}
3939
};
40-
},
40+
}],
4141
compile: function(element, attrs) {
4242
attrs.$addClass("responsive");
4343
var headers = getHeaders(element[0]);

release/angular-responsive-tables.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function colspan(td) {
2020
function wtResponsiveTable() {
2121
return {
2222
restrict: 'A',
23-
controller: function ($element) {
23+
controller: ['$element', function ($element) {
2424
return {
2525
getHeader: function (td) {
2626
var firstHeader = td.parentElement.querySelector('th');
@@ -42,7 +42,7 @@ function wtResponsiveTable() {
4242
}
4343
},
4444
}
45-
},
45+
}],
4646
compile: function (element, attrs) {
4747
attrs.$addClass('responsive');
4848
var headers = getHeaders(element[0]);

0 commit comments

Comments
 (0)