Skip to content

Commit

Permalink
fixed infinite loop when jQuery is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Pierronnet committed Jan 22, 2015
1 parent 9807502 commit 487205e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angular-charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ angular.module('angularCharts').directive('acChart', function($templateCache, $c
function getChildrenByClassname(childrens, className) {
var child = null;

for (var i in childrens) {
for (var i = 0; i < childrens.length; i++) {
if (angular.isElement(childrens[i])) {
child = angular.element(childrens[i]);
if (child.hasClass(className))
Expand Down Expand Up @@ -1207,4 +1207,4 @@ angular.module('angularCharts').directive('acChart', function($templateCache, $c
acConfig: '='
}
};
});
});

0 comments on commit 487205e

Please sign in to comment.