hottowel - Hot Towel - Does Durandal need to be patched to use Q instead of jQuery promises? -


in working on first spa application based on john papa's hot towel template, ran across note suggest durandal uses jquery promises, whereas other libraries in hot towel use q promises. durandal have page explains how patch, found app works same , without it.

http://durandaljs.com/documentation/q/

i have seen comments on advantages of q, , sold on that, wondering if patching durandal advised or not advised expert in this?

tl;dr q , jquery not interoperable

rather return new promise jquery mutates existing 1 supposed immutable. why matter? because $.then function no longer chainable , error handling doesn't work way expected. may possible make them work in simple cases shouldn't.

another thing note according 1 of jquery developers backwards compatibility reasons never fixed.

this article excellent job explaining both spec , current state of jquery promises.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -