Skip to content

Commit

Permalink
Moved undefined checking
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Dec 10, 2014
1 parent 47fa532 commit 5cc830d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions thaw.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ var Thaw = (function(window) {
timeout = setTimeout(tick, 0);

if (!thawing) {
item = items[i];

if (i >= items.length) {

item = items[i];
if (done !== null) {
thawing = true;
done.call(item, i);
Expand Down Expand Up @@ -208,8 +209,9 @@ var Thaw = (function(window) {
timeout = setTimeout(tick, 0);

if (!thawing) {
item = items[i];

if (i >= items.length) {
item = items[i];

if (done !== null) {
thawing = true;
Expand Down

0 comments on commit 5cc830d

Please sign in to comment.