Skip to content

Commit

Permalink
merge hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chanlee committed Aug 11, 2016
2 parents 653a3b6 + d11da62 commit a479bd8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6650,6 +6650,9 @@ Entry.Container.prototype.getCachedPicture = function(b) {
Entry.Container.prototype.cachePicture = function(b, a) {
this.cachedPicture[b] = a;
};
Entry.Container.prototype.removeCachedPicture = function(b) {
delete this.cachedPicture[b];
};
Entry.Container.prototype.toJSON = function() {
for (var b = [], a = this.objects_.length, c = 0;c < a;c++) {
b.push(this.objects_[c].toJSON());
Expand Down
9 changes: 5 additions & 4 deletions dist/entry.min.js

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

8 changes: 8 additions & 0 deletions src/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,14 @@ Entry.Container.prototype.cachePicture = function(pictureId, image) {
this.cachedPicture[pictureId] = image;
};

/**
* cache picture
* @param {!picture object} pictureModel
*/
Entry.Container.prototype.removeCachedPicture = function(pictureId) {
delete this.cachedPicture[pictureId];
};

/**
* convert this object's data to JSON.
* @return {JSON}
Expand Down

0 comments on commit a479bd8

Please sign in to comment.