Skip to content

Commit 23aa9fc

Browse files
committed
IE8 doesn't have these constants
1 parent 87e4c20 commit 23aa9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/pagination/dirPagination.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
*/
155155
function addNoCompileAttributes(tElement) {
156156
angular.forEach(tElement, function(el) {
157-
if (el.nodeType === Node.ELEMENT_NODE) {
157+
if (el.nodeType === 1) {
158158
angular.element(el).attr('dir-paginate-no-compile', true);
159159
}
160160
});
@@ -166,7 +166,7 @@
166166
*/
167167
function removeTemporaryAttributes(element) {
168168
angular.forEach(element, function(el) {
169-
if (el.nodeType === Node.ELEMENT_NODE) {
169+
if (el.nodeType === 1) {
170170
angular.element(el).removeAttr('dir-paginate-no-compile');
171171
}
172172
});

0 commit comments

Comments
 (0)