MCPcopy Index your code
hub / github.com/jquery/jquery / getDiv

Function getDiv

test/unit/manipulation.js:2273–2293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2271 div.remove();
2272
2273 function getDiv() {
2274 var div = jQuery( "<div class='outer'><div class='inner'></div></div>" ).on( "click", function() {
2275 assert.ok( true, type + " " + pos + " Click event fired." );
2276 } ).on( "focus", function() {
2277 assert.ok( true, type + " " + pos + " Focus event fired." );
2278 } ).find( "div" ).on( "click", function() {
2279 assert.ok( false, type + " " + pos + " Click event fired." );
2280 } ).on( "focus", function() {
2281 assert.ok( false, type + " " + pos + " Focus event fired." );
2282 } ).end().appendTo( "body" );
2283
2284 div[ 0 ].detachEvent = div[ 0 ].removeEventListener = function( t ) {
2285 assert.ok( true, type + " Outer " + t + " event unbound" );
2286 };
2287
2288 div[ 0 ].firstChild.detachEvent = div[ 0 ].firstChild.removeEventListener = function( t ) {
2289 assert.ok( true, type + " Inner " + t + " event unbound" );
2290 };
2291
2292 return div;
2293 }
2294} );
2295
2296QUnit.test( "jQuery.cleanData eliminates all private data (gh-2127)", function( assert ) {

Callers 1

manipulation.jsFile · 0.85

Calls 1

jQueryFunction · 0.50

Tested by

no test coverage detected