How can we improve Breeze.js?

Facilitate chaining of breeze operations within jQuery deferreds

I'd like to chain together a sequence of Breeze and jQuery async operations. Breeze uses promises from Q.js; jQuery has its own "deferreds". As a front-end developer I'm mostly writing in jQuery. So I'd like an easy way to adapt promises to jQuery deferreds so I can write a bunch of jQuery async commands with an occasional Breeze operation tucked in the middle.

7 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Kate shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Daz commented  ·   ·  Flag as inappropriate

    This is relatively straightforward and formulaic. See https://github.com/kriskowal/q/wiki/Coming-from-jQuery I wanted to use jQuery while transitioning to Q when I started with Breeze and created the following wrapper: return $.Deferred(function($def){ qpromise.then(function(x){ ...; $def.resolve(x); }).fail(function(e){ ...; $def.reject(e); })) to go from Q to jQuery

Feedback and Knowledge Base