Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Fixes for IE8. Replace missing IE8 Array methods forEach and indexOf. #216

Merged
merged 1 commit into from
Feb 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dist/angular-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,15 +773,15 @@ function dtRendererService(DTLoadingTemplate) {
}

function postRender(options, result) {
plugins.forEach(function(plugin) {
angular.forEach(plugins, function(plugin) {
if (angular.isFunction(plugin.postRender)) {
plugin.postRender(options, result);
}
});
}

function preRender(options) {
plugins.forEach(function(plugin) {
angular.forEach(plugins, function(plugin) {
if (angular.isFunction(plugin.preRender)) {
plugin.preRender(options);
}
Expand Down Expand Up @@ -1231,7 +1231,7 @@ function dtPropertyUtil($q) {
} else {
resolvedObj = angular.extend(resolvedObj, obj);
for (var prop in resolvedObj) {
if (resolvedObj.hasOwnProperty(prop) && excludedProp.indexOf(prop) === -1) {
if (resolvedObj.hasOwnProperty(prop) && $.inArray(prop, excludedProp) === -1) {
if (angular.isArray(resolvedObj[prop])) {
promises.push(resolveArrayPromises(resolvedObj[prop]));
} else {
Expand All @@ -1242,7 +1242,7 @@ function dtPropertyUtil($q) {
$q.all(promises).then(function(result) {
var index = 0;
for (var prop in resolvedObj) {
if (resolvedObj.hasOwnProperty(prop) && excludedProp.indexOf(prop) === -1) {
if (resolvedObj.hasOwnProperty(prop) && $.inArray(prop, excludedProp) === -1) {
resolvedObj[prop] = result[index++];
}
}
Expand All @@ -1264,15 +1264,15 @@ function dtPropertyUtil($q) {
if (!angular.isArray(array)) {
defer.resolve(array);
} else {
array.forEach(function(item) {
angular.forEach(array, function(item) {
if (angular.isObject(item)) {
promises.push(resolveObjectPromises(item));
} else {
promises.push($q.when(item));
}
});
$q.all(promises).then(function(result) {
result.forEach(function(item) {
angular.forEach(result, function(item) {
resolveArray.push(item);
});
defer.resolve(resolveArray);
Expand Down
Loading