MCPcopy Create free account
hub / github.com/angular-dragdrop/angular-dragdrop / isDragChannelAccepted

Function isDragChannelAccepted

draganddrop.js:325–333  ·  view source on GitHub ↗
(dragChannel, dropChannel)

Source from the content-addressed store, hash-verified

323 }
324
325 function isDragChannelAccepted(dragChannel, dropChannel) {
326 if (dropChannel === '*') {
327 return true;
328 }
329
330 var channelMatchPattern = new RegExp('(\\s|[,])+(' + dragChannel + ')(\\s|[,])+', 'i');
331
332 return channelMatchPattern.test(',' + dropChannel + ',');
333 }
334
335 function preventNativeDnD(e) {
336 if(e.originalEvent) {

Callers 1

draganddrop.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected