[Pkg-javascript-commits] [pdf.js] 168/210: Fixes regression in the cleanup
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:21:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit f4baea900e2a5991c7fe6bb61c0b26a83c272825
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Tue May 20 21:57:04 2014 -0500
Fixes regression in the cleanup
---
src/core/obj.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/core/obj.js b/src/core/obj.js
index f2c3586..5b1415c 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -511,9 +511,10 @@ var Catalog = (function CatalogClosure() {
this.fontCache.forEach(function (promise) {
promises.push(promise);
});
- return Promise.all(promises).then(function (fonts) {
- for (var i = 0, ii = fonts.length; i < ii; i++) {
- delete fonts[i].translated;
+ return Promise.all(promises).then(function (translatedFonts) {
+ for (var i = 0, ii = translatedFonts.length; i < ii; i++) {
+ var font = translatedFonts[i].dict;
+ delete font.translated;
}
this.fontCache.clear();
}.bind(this));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list