Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit 8579b48

Browse files
author
Necati Özal
committed
Minor bug fixes.
1 parent fc28cda commit 8579b48

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

queue.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
length: 0,
1010

1111
add: function(callback, argArray) {
12-
this.push([].slice.call(arguments));
12+
this.push([
13+
callback,
14+
[].slice.call(1, arguments)
15+
]);
1316
},
1417

1518
put: function(callback, argArray) {
16-
this.splice(this.index, 0, [].slice.call(arguments));
19+
this.splice(this.index, 0, [
20+
callback,
21+
[].slice.call(1, arguments)
22+
]);
1723
},
1824

1925
run: function() {

0 commit comments

Comments
 (0)