diff options
Diffstat (limited to 'src/var/isAttached.js')
-rw-r--r-- | src/var/isAttached.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/var/isAttached.js b/src/var/isAttached.js new file mode 100644 index 000000000..1dd798268 --- /dev/null +++ b/src/var/isAttached.js @@ -0,0 +1,11 @@ +define( [ + "../core", + "../selector" // Get jQuery.contains +], function( jQuery ) { + "use strict"; + + return function isAttached( obj ) { + return jQuery.contains( obj.ownerDocument, obj ); + }; + +} ); |