Permalink
Browse files

Internet Explorer would iterate through array methods, too.

  • Loading branch information...
Szaby Grünwald
Szaby Grünwald committed Dec 7, 2011
1 parent cb4174a commit 50bcefce7de79c6d9ac2e0ca16b57d030d33d07c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Util.js
View
@@ -144,7 +144,7 @@ VIE.Util = {
rules.prefix(prefix, service.namespaces.get(prefix));
}
}
- for (var i = 0; i < service.rules.length; i++) {
+ for (var i = 0; i < service.rules.length; i++)if(service.rules.hasOwnProperty(i)) {
rules.add(service.rules[i]['left'], service.rules[i]['right']);
}
rdf = rdf.reason(rules, 10); // execute the rules only 10 times to avoid looping

0 comments on commit 50bcefc

Please sign in to comment.