[Pkg-javascript-commits] [node-browser-pack] 15/141: row.order test passes
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:23:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browser-pack.
commit db59e2a72196fafe79bdeb05b54b0dfedc5fc1a8
Author: James Halliday <mail at substack.net>
Date: Wed Feb 20 01:45:53 2013 -0800
row.order test passes
---
index.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 1ac75b5..675b536 100644
--- a/index.js
+++ b/index.js
@@ -27,6 +27,7 @@ module.exports = function (opts) {
var first = true;
var entries = [];
+ var order = [];
return duplexer(parser, output);
@@ -44,7 +45,10 @@ module.exports = function (opts) {
].join(''));
first = false;
- entries.push(row.id);
+ if (row.order !== undefined) {
+ entries.splice(row.order, 0, row.id);
+ }
+ else entries.push(row.id);
}
function end () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git
More information about the Pkg-javascript-commits
mailing list