Skip to content

Commit eb06b0e

Browse files
committed
Data: remove mention to .data( "events" )
Fixes gh-346 Closes gh-623
1 parent 310a550 commit eb06b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/data.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $( "body" ).data( { baz: [ 1, 2, 3 ] } );
2929
$( "body" ).data( "foo" ); // 52
3030
$( "body" ).data(); // { foo: 52, bar: { myType: "test", count: 40 }, baz: [ 1, 2, 3 ] }
3131
</code></pre>
32-
<p>In jQuery 1.4.3 setting an element's data object with <code>.data(obj)</code> extends the data previously stored with that element. jQuery itself uses the <code>.data()</code> method to save information under the names 'events' and 'handle', and also reserves any data name starting with an underscore ('_') for internal use.</p>
32+
<p>In jQuery 1.4.3 setting an element's data object with <code>.data(obj)</code> extends the data previously stored with that element.</p>
3333
<p>Prior to jQuery 1.4.3 (starting in jQuery 1.4) the <code>.data()</code> method completely replaced all data, instead of just extending the data object. If you are using third-party plugins it may not be advisable to completely replace the element's data object, since plugins may have also set data.</p>
3434
<p>Due to the way browsers interact with plugins and external code, the <code>.data()</code> method cannot be used on <code>&lt;object&gt;</code> (unless it's a Flash plugin), <code>&lt;applet&gt;</code> or <code>&lt;embed&gt;</code> elements.</p>
3535
</longdesc>

0 commit comments

Comments
 (0)