Skip to content

Commit

Permalink
Remove jshint global option
Browse files Browse the repository at this point in the history
As suggested I added a declaration of the function as a var on top of
the lib
  • Loading branch information
gvnn committed Dec 1, 2014
1 parent a09e2f5 commit 59825e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function inherits(Child, Parent) {
var exports = exports || {};
var isArray = Array.isArray;

// conjure function declared at this level to avoid linting issues due to
// interdependence between different functions.
var conjure;

// ________
// | \
Expand Down Expand Up @@ -325,7 +328,6 @@ function arrayInit(tome, val, seen) {
seen.push(val[i]);
}

/* global conjure */
tome._arr[i] = conjure(val[i], tome, i, seen);

// We use hasOwnProperty here because arrays instantiated with new
Expand Down Expand Up @@ -395,7 +397,6 @@ function objectInit(tome, val, seen) {
seen.push(kv);
}

/* global conjure */
tome[key] = kv === undefined ? undefined : conjure(kv, tome, key, seen);
}

Expand Down

0 comments on commit 59825e9

Please sign in to comment.