Skip to content

Commit 31f27ef

Browse files
committed
0.3.3
1 parent f1b5a1b commit 31f27ef

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "servable",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "From scratch observable",
55
"main": "lib/index.js",
66
"jsnext:main": "src/index.js",

src/operators/combine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { onSubscriptionsComplete } from '../utilities/onSubscriptionsComplete';
33

44
const nullHash = void(0);
55

6-
export const combine = function (sources$, combineCallback = ((...args) => [...args])) {
6+
const argsCallback = function () { return Array.from(arguments); }
7+
export const combine = function (sources$, combineCallback = argsCallback) {
78
return new Observable(function ({ next, error, complete }) {
89
let subscriptions = [];
910

src/operators/zip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const startIndex = {
66
indexAt: -1,
77
};
88

9-
export const zip = function (sources$, combineCallback = ((...args) => [...args])) {
9+
const argsCallback = function () { return Array.from(arguments); }
10+
export const zip = function (sources$, combineCallback = argsCallback) {
1011
return new Observable(function ({ next, error, complete }) {
1112
let subscriptions = [];
1213

0 commit comments

Comments
 (0)