diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js deleted file mode 100644 index f5911a10..00000000 --- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js +++ /dev/null @@ -1,93 +0,0 @@ -/*! - * jquery.event.drop.live - v 2.2 - * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com - * Open Source MIT License - http://threedubmedia.com/code/license - */ -// Created: 2010-06-07 -// Updated: 2012-05-21 -// REQUIRES: jquery 1.7.x, event.drag 2.2, event.drop 2.2 - -;(function($){ // secure $ jQuery alias - -// local refs (increase compression) -var $event = $.event, -// ref the drop special event config -drop = $event.special.drop, -// old drop event add method -origadd = drop.add, -// old drop event teradown method -origteardown = drop.teardown; - -// allow events to bubble for delegation -drop.noBubble = false; - -// the namespace for internal live events -drop.livekey = "livedrop"; - -// new drop event add method -drop.add = function( obj ){ - // call the old method - origadd.apply( this, arguments ); - // read the data - var data = $.data( this, drop.datakey ); - // bind the live "dropinit" delegator - if ( !data.live && obj.selector ){ - data.live = true; - $event.add( this, "dropinit."+ drop.livekey, drop.delegate ); - } -}; - -// new drop event teardown method -drop.teardown = function(){ - // call the old method - origteardown.apply( this, arguments ); - // read the data - var data = $.data( this, drop.datakey ) || {}; - // remove the live "dropinit" delegator - if ( data.live ){ - // remove the "live" delegation - $event.remove( this, "dropinit", drop.delegate ); - data.live = false; - } -}; - -// identify potential delegate elements -drop.delegate = function( event, dd ){ - // local refs - var elems = [], $targets, - // element event structure - events = $.data( this, "events" ) || {}; - // query live events - $.each( events || [], function( key, arr ){ - // no event type matches - if ( key.indexOf("drop") !== 0 ) - return; - $.each( arr, function( i, obj ){ - // locate the elements to delegate - $targets = $( event.currentTarget ).find( obj.selector ); - // no element found - if ( !$targets.length ) - return; - // take each target... - $targets.each(function(){ - // add an event handler - $event.add( this, obj.origType +'.'+ drop.livekey, obj.origHandler || obj.handler, obj.data ); - // remember new elements - if ( $.inArray( this, elems ) < 0 ) - elems.push( this ); - }); - }); - }); - // may not exist when artifically triggering dropinit event - if ( dd ) - // clean-up after the interaction ends - $event.add( dd.drag, "dragend."+drop.livekey, function(){ - $.each( elems.concat( this ), function(){ - $event.remove( this, '.'+ drop.livekey ); - }); - }); - //drop.delegates.push( elems ); - return elems.length ? $( elems ) : false; -}; - -})( jQuery ); // confine scope
\ No newline at end of file |