Skip to content

Commit

Permalink
0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maniator committed May 12, 2017
1 parent f1b5a1b commit 31f27ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "servable",
"version": "0.3.2",
"version": "0.3.3",
"description": "From scratch observable",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/operators/combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { onSubscriptionsComplete } from '../utilities/onSubscriptionsComplete';

const nullHash = void(0);

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

Expand Down
3 changes: 2 additions & 1 deletion src/operators/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const startIndex = {
indexAt: -1,
};

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

Expand Down

0 comments on commit 31f27ef

Please sign in to comment.