Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frames accept null #1254

Merged
merged 3 commits into from
Dec 14, 2016
Merged

Add frames accept null #1254

merged 3 commits into from
Dec 14, 2016

Conversation

rreusser
Copy link
Contributor

cc: @bpostlethwaite

I've added the capability to ignore null frames in addFrames. I think it's good, but honestly I find the index-based addFrames a bit fragile and undesirable in the first place, so I hate to push 'fixes' through too quickly. All it does is continue to the next frame if the input is null.

@@ -43,6 +43,13 @@ describe('Test frame api', function() {
}).catch(fail).then(done);
});

it('compresses nulls when adding frames', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not just nulls to be fair. but yeah this seems like the correct behavoir

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, you beat me to it.

@etpinard
Copy link
Contributor

💃

@rreusser
Copy link
Contributor Author

Expecting passed tests; waiting for confirmation just to play it safe.

@rreusser rreusser merged commit 7e9fc1d into master Dec 14, 2016
@rreusser rreusser deleted the add-frames-accept-null branch December 14, 2016 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants