Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

fetchQueue null check #305

Merged
merged 3 commits into from
Jan 13, 2014
Merged

fetchQueue null check #305

merged 3 commits into from
Jan 13, 2014

Conversation

jhudson8
Copy link
Contributor

null check to address #304

this.fetchQueue._promise = $super.call(this, options);
return this.fetchQueue._promise;
var promise = $super.call(this, options);
this.fetchQueue && this.fetchQueue._promise = promise;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is illegal. Even if it's not, its confusing.

Can you use the if form for this?

Also we should have a comment as to why we are doing this so people aren't confused about it in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do. I referenced the issue in the commit so people would see it on a blame but I'll a comment as well.

kpdecker added a commit that referenced this pull request Jan 13, 2014
@kpdecker kpdecker merged commit 660f18f into master Jan 13, 2014
@kpdecker kpdecker deleted the loading-fetchqueue-promise branch January 13, 2014 19:51
@kpdecker
Copy link
Contributor

Released in 2.3.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants