Skip to content

Commit 072b37d

Browse files
committed
deferred.done: Change to slash-star comments for IE<=8
1 parent 122aa38 commit 072b37d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

entries/deferred.done.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $.get("test.php").done(function() {
2929
<example>
3030
<desc>Resolve a Deferred object when the user clicks a button, triggering a number of callback functions:</desc>
3131
<code><![CDATA[
32-
// 3 functions to call when the Deferred object is resolved
32+
/* 3 functions to call when the Deferred object is resolved */
3333
function fn1() {
3434
$("p").append(" 1 ");
3535
}
@@ -40,19 +40,19 @@ function fn3(n) {
4040
$("p").append(n + " 3 " + n);
4141
}
4242
43-
// create a deferred object
43+
/* create a deferred object */
4444
var dfd = $.Deferred();
4545
46-
// add handlers to be called when dfd is resolved
46+
/* add handlers to be called when dfd is resolved */
4747
dfd
48-
// .done() can take any number of functions or arrays of functions
48+
/* .done() can take any number of functions or arrays of functions */
4949
.done( [fn1, fn2], fn3, [fn2, fn1] )
50-
// we can chain done methods, too
50+
/* we can chain done methods, too */
5151
.done(function(n) {
5252
$("p").append(n + " we're done.");
5353
});
5454
55-
// resolve the Deferred object when the button is clicked
55+
/* resolve the Deferred object when the button is clicked */
5656
$("button").bind("click", function() {
5757
dfd.resolve("and");
5858
});
@@ -64,4 +64,4 @@ $("button").bind("click", function() {
6464
</example>
6565
<category slug="deferred-object"/>
6666
<category slug="version/1.5"/>
67-
</entry>
67+
</entry>

0 commit comments

Comments
 (0)