Skip to content

Commit 3dc6bd5

Browse files
committed
Deferred: Deprecate deferred.pipe() method
Ref #89
1 parent 683b9b3 commit 3dc6bd5

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = function(grunt) {
2727
"src/manipulation.js",
2828
"src/event.js",
2929
"src/traversing.js",
30+
"src/deferred.js",
3031
"src/outro.js"
3132
],
3233
tests: {

test/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<script src="ajax.js"></script>
4141
<script src="event.js"></script>
4242
<script src="traversing.js"></script>
43+
<script src="deferred.js"></script>
4344
</head>
4445
<body>
4546
<div id="qunit"></div>

warnings.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ $(document).ajaxStart(function(){ $("#status").text("Ajax started"); });
148148

149149
**Solution**: Boolean properties should generally not be passed to `$().attr` at all; replace with `$().prop` unless you truly intend to update the underlying HTML *attribute*.
150150

151+
### JQMIGRATE: deferred.pipe() is deprecated
152+
153+
**Cause**: The `.pipe()` method on a `jQuery.Deferred` object was deprecated as of jQuery 1.8, when the `.then()` method was changed to perform the same function.
154+
155+
**Solution**: Change all occurrences of `.pipe()` to `.then()`.
156+
151157
### JQMIGRATE: jQuery.clean() is deprecated
152158

153159
**Cause**: `jQuery.buildFragment()` and `jQuery.clean()` are undocumented internal methods. The signature of `jQuery.buildFragment()` was changed in jQuery 1.8 and 1.9, and `jQuery.clean()` was removed in 1.9. However, we are aware of some plugins or other code that may be using them.

0 commit comments

Comments
 (0)