Skip to content

Commit

Permalink
fix: don't remove filecache for files that were successfully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Jun 1, 2015
1 parent 0fd01cb commit e2ed37c
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion dist/modules/ocLazyLoad.loaders.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
el.onload = el.onreadystatechange = null;
loaded = 1;
$delegate._broadcast("ocLazyLoad.fileLoaded", path);
filesCache.remove(path);
deferred.resolve();
};
el.onerror = function () {
Expand Down
1 change: 0 additions & 1 deletion dist/ocLazyLoad.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/ocLazyLoad.require.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.require.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.require.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ocLazyLoad.require.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/ocLazyLoad.loaders.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
el.onload = el['onreadystatechange'] = null;
loaded = 1;
$delegate._broadcast('ocLazyLoad.fileLoaded', path);
filesCache.remove(path);
deferred.resolve();
};
el.onerror = function() {
Expand Down

0 comments on commit e2ed37c

Please sign in to comment.