aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-09-08 23:31:23 +0000
committerJohn Resig <jeresig@gmail.com>2007-09-08 23:31:23 +0000
commit3a4e1233aa2acabee0d0267d54c2d1112fbdcad4 (patch)
tree98f85f965029683df743bbbe93885f9f373dcdae /test/data
parent15a78f8fea8679205bc734ec053ff24ebbfd31c8 (diff)
downloadjquery-3a4e1233aa2acabee0d0267d54c2d1112fbdcad4.tar.gz
jquery-3a4e1233aa2acabee0d0267d54c2d1112fbdcad4.zip
Landing the new expando management code. Completely overhauls how data is associated with elements.
Plugins will be most interested in: - jQuery.data(elem) -> Unique ID for the element - jQuery.data(elem, name) -> Named data store for the element - jQuery.data(elem, name, value) -> Saves a value to the named data store - jQuery.removeData(elem) -> Remove the expando and the complete data store - jQuery.removeData(elem, name) -> Removes just this one named data store jQuery's .remove() and .empty() automatically clean up after themselves. Once an element leaves a DOM document their events are no longer intact. Thus, statements like so: {{{ $("#foo").remove().appendTo("#bar"); }}} should be written like so: {{{ $("#foo").appendTo("#bar"); }}} in order to avoid losing the bound events.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/testrunner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/data/testrunner.js b/test/data/testrunner.js
index 69377e452..7b7779a5b 100644
--- a/test/data/testrunner.js
+++ b/test/data/testrunner.js
@@ -161,7 +161,7 @@ function expect(asserts) {
* Resets the test setup. Useful for tests that modify the DOM.
*/
function reset() {
- document.getElementById('main').innerHTML = _config.fixture;
+ $("#main").html( _config.fixture );
}
/**