Skip to content

Commit 05ee2ca

Browse files
author
Martin Atkins
committed
Remove the no-longer-needed table element.
1 parent 111cbac commit 05ee2ca

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/angulardynamicform.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636

3737
$element.html('');
3838

39-
var tableElem = angular.element('<table></table>');
40-
// FIXME: I bet this doesn't work in some browsers (I'm looking at you,
41-
// old versions of MSIE) because they'll implicitly create a TBODY in
42-
// here and then refuse to display rows that aren't in it.
43-
4439
function linkFunctionForFieldType(type) {
4540
var match = type.match(/^(\w+)\<.*\>$/);
4641
if (match) {
@@ -70,7 +65,7 @@
7065
// new ones.
7166

7267
// empty the table in case we've already got some stuff in there
73-
tableElem.html('');
68+
$element.html('');
7469

7570
var data = $scope.dataExpr($scope);
7671

@@ -149,7 +144,7 @@
149144
updateFieldType
150145
);
151146

152-
tableElem.append(rowElem);
147+
$element.append(rowElem);
153148
}
154149
);
155150
}
@@ -171,8 +166,6 @@
171166
false
172167
);
173168

174-
$element.append(tableElem);
175-
176169
};
177170
}
178171
};

0 commit comments

Comments
 (0)