Skip to content

Commit

Permalink
Fix kartik-v#576: Correct previewCache initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Feb 28, 2016
1 parent c6e8db2 commit e3c9b61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Change Log: `bootstrap-fileinput`

## version 4.3.1

**Date:** 27-Feb-2016
**Date:** 28-Feb-2016

1. (enh #514): Set default value for `removeFromPreviewOnError` to `false`.
2. (enh #554): Update documentation and demos to include `webkitdirectory` for upload.
Expand All @@ -18,6 +18,7 @@ Change Log: `bootstrap-fileinput`
10. (enh #573): Update package.json to include `peerDependencies`.
11. (enh #574): Change naming convention for private / internal methods. Prepend internal plugin methods with underscore `_`.
12. (enh #575): Implement public method chaining and update docs for methods.
13. (bug #576): Correct previewCache initialization.

## version 4.3.0

Expand Down
2 changes: 1 addition & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
self.fileActionSettings = $.extend(true, defaultFileActionSettings, options.fileActionSettings);
self.previewInitId = "preview-" + uniqId();
self.id = self.$element.attr('id');
previewCache._init(self);
previewCache.init(self);
self._initPreview(true);
self._initPreviewDeletes();
self.options = options;
Expand Down
Loading

0 comments on commit e3c9b61

Please sign in to comment.