diff options
author | jaubourg <j@ubourg.net> | 2012-05-06 01:05:03 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-05-06 01:05:03 +0200 |
commit | e3cf0e220c6cfaac18642f3d4db96698ea601791 (patch) | |
tree | a846d95e1622ee7d27fa0a903d66715ee303baaf /test/data | |
parent | 714b8ffd2b28af446fea8f25e369597d7c509cb4 (diff) | |
download | jquery-e3cf0e220c6cfaac18642f3d4db96698ea601791.tar.gz jquery-e3cf0e220c6cfaac18642f3d4db96698ea601791.zip |
Transform $.bindReady into $.ready.promise. It is now possible to use $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added.
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/event/promiseReady.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/data/event/promiseReady.html b/test/data/event/promiseReady.html new file mode 100644 index 000000000..f799a7e3e --- /dev/null +++ b/test/data/event/promiseReady.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +<title>Test case for jQuery ticket #11470</title> +<script type="text/javascript" src="../include_js.php"></script> +<script type="text/javascript"> +jQuery.when( jQuery.ready ).done(function() { + jQuery("body").append("<div>modifying DOM</div>"); + window.parent.iframeCallback( $("div").text() === "modifying DOM" ); +}); +</script> +</head> +<body> +<!-- long loading iframe --> +</body> +</html>
\ No newline at end of file |