MCPcopy Create free account
hub / github.com/sql-js/sql.js / cloneCopyEvent

Function cloneCopyEvent

documentation/javascript/application.js:6786–6812  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

6784}
6785
6786function cloneCopyEvent( src, dest ) {
6787
6788 if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
6789 return;
6790 }
6791
6792 var type, i, l,
6793 oldData = jQuery._data( src ),
6794 curData = jQuery._data( dest, oldData ),
6795 events = oldData.events;
6796
6797 if ( events ) {
6798 delete curData.handle;
6799 curData.events = {};
6800
6801 for ( type in events ) {
6802 for ( i = 0, l = events[ type ].length; i < l; i++ ) {
6803 jQuery.event.add( dest, type, events[ type ][ i ] );
6804 }
6805 }
6806 }
6807
6808 // make the cloned public data object a copy from the original
6809 if ( curData.data ) {
6810 curData.data = jQuery.extend( {}, curData.data );
6811 }
6812}
6813
6814function cloneFixAttributes( src, dest ) {
6815 var nodeName;

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…