1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Resolving new lint issues

This commit is contained in:
Tim van der Meij 2014-04-09 19:47:42 +02:00
parent 1d066b768f
commit f463f96f35
5 changed files with 22 additions and 17 deletions

View file

@ -151,8 +151,9 @@ var Dict = (function DictClosure() {
getAll: function Dict_getAll() {
var all = Object.create(null);
var queue = null;
for (var key in this.map) {
var obj = this.get(key);
var key, obj;
for (key in this.map) {
obj = this.get(key);
if (obj instanceof Dict) {
if (isRecursionAllowedFor(obj)) {
(queue || (queue = [])).push({target: all, key: key, obj: obj});
@ -178,8 +179,8 @@ var Dict = (function DictClosure() {
continue;
}
var dereferenced = Object.create(null);
for (var key in itemObj.map) {
var obj = itemObj.get(key);
for (key in itemObj.map) {
obj = itemObj.get(key);
if (obj instanceof Dict) {
if (isRecursionAllowedFor(obj)) {
queue.push({target: dereferenced, key: key, obj: obj});