Skip to content

selectOptions.collection accepts jQuery promise#203

Closed
gsaandy wants to merge 1 commit into
nytimes:masterfrom
gsaandy:support_$_promise
Closed

selectOptions.collection accepts jQuery promise#203
gsaandy wants to merge 1 commit into
nytimes:masterfrom
gsaandy:support_$_promise

Conversation

@gsaandy
Copy link
Copy Markdown

@gsaandy gsaandy commented Feb 13, 2014

ex:1
selectOptions: {
collection: function () {
return $.ajax(options);
//or
return this.colletion.fetch();
},
labelPath: 'age',
valuePath: 'name'
}

ex:1
selectOptions: {
    collection: function () {
        return $.ajax(options);
        //or
        return this.colletion.fetch();
    },
    labelPath: 'age',
    valuePath: 'name'
}
@patrick-radius
Copy link
Copy Markdown
Contributor

+1

@akre54
Copy link
Copy Markdown
Contributor

akre54 commented Apr 12, 2014

Unfortunately jQuery's "promises" are hella broken. I like the idea in theory, but any way we can make it more general to a proper Promises/A+ spec?

@akre54
Copy link
Copy Markdown
Contributor

akre54 commented May 1, 2014

Closing in favor of #231

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.

3 participants