[Pkg-javascript-commits] [pdf.js] 97/207: Renames concatenateToArray to appendToArray
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 9c072a5d4b7378629db0c118c44a6ce3869f183d
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Mon Jun 16 22:10:10 2014 +0200
Renames concatenateToArray to appendToArray
---
src/core/evaluator.js | 4 ++--
src/core/stream.js | 2 +-
src/shared/util.js | 5 ++---
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/core/evaluator.js b/src/core/evaluator.js
index e353280..52cbd6c 100644
--- a/src/core/evaluator.js
+++ b/src/core/evaluator.js
@@ -1120,7 +1120,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var name = args[0].name;
if (xobjsCache.key === name) {
if (xobjsCache.texts) {
- Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
+ Util.appendToArray(bidiTexts, xobjsCache.texts.items);
Util.extendObj(textContent.styles, xobjsCache.texts.styles);
}
break;
@@ -1151,7 +1151,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
return self.getTextContent(xobj,
xobj.dict.get('Resources') || resources, stateManager).
then(function (formTextContent) {
- Util.concatenateToArray(bidiTexts, formTextContent.items);
+ Util.appendToArray(bidiTexts, formTextContent.items);
Util.extendObj(textContent.styles, formTextContent.styles);
stateManager.restore();
diff --git a/src/core/stream.js b/src/core/stream.js
index df59890..406d4d9 100644
--- a/src/core/stream.js
+++ b/src/core/stream.js
@@ -274,7 +274,7 @@ var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
for (var i = 0, ii = this.streams.length; i < ii; i++) {
var stream = this.streams[i];
if (stream.getBaseStreams) {
- Util.concatenateToArray(baseStreams, stream.getBaseStreams());
+ Util.appendToArray(baseStreams, stream.getBaseStreams());
}
}
return baseStreams;
diff --git a/src/shared/util.js b/src/shared/util.js
index ae4d85d..77e9636 100644
--- a/src/shared/util.js
+++ b/src/shared/util.js
@@ -678,12 +678,11 @@ var Util = PDFJS.Util = (function UtilClosure() {
return num < 0 ? -1 : 1;
};
- // TODO(mack): Rename appendToArray
- Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
+ Util.appendToArray = function Util_appendToArray(arr1, arr2) {
Array.prototype.push.apply(arr1, arr2);
};
- Util.prependToArray = function concatenateToArray(arr1, arr2) {
+ Util.prependToArray = function Util_prependToArray(arr1, arr2) {
Array.prototype.unshift.apply(arr1, arr2);
};
--
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