I hope to understand why I have a different behavior when you try to chain a deferred object directly than I do when I try to chain, store the object in a variable and call one or more deferred methods for that variable.
When saving the object in a variable, the value assigned to each function is the same (in the case of a code fragment below, 5) - that is, the values are not filtered in this case. When directly connecting values, the values are filtered ... so I don’t understand how to get filtering when setting up Deferred.pipe() in several different statements. And by reading jquery docs , this should be possible:
A deferred object is chained, similar to how a jQuery object is chained, but has its own methods. After creating the Deferred object, you can use any of the following methods by chaining directly from creating the object or storing the object in a variable and calling one or more methods for this variable.
What am I doing wrong?
Here is my code:
<script type="text/javascript"> $(document).ready(function () { </script>
source share