MCPcopy
hub / github.com/bendc/sprint / getEventsToRemove

Function getEventsToRemove

sprint.js:144–156  ·  view source on GitHub ↗
(domElement, event)

Source from the content-addressed store, hash-verified

142 }
143
144 var getEventsToRemove = function(domElement, event) {
145 /*
146 * Returns an array with the sprintEventListeners events matching potentially
147 * incomplete event names passed to .off().
148 * Example: .off("click.myPlugin") and .off("click.simple") would both remove a
149 * "click.myPlugin.simple" event.
150 */
151 return Object.keys(getEvents(domElement)).filter(function(prop) {
152 return splitNamespaces(event).every(function(name) {
153 return inArray(name, splitNamespaces(prop))
154 })
155 })
156 }
157
158 var getSetDimension = function(obj, prop, value) {
159 // get

Callers 2

removeMatchedEventsFunction · 0.85
sprint.jsFile · 0.85

Calls 3

getEventsFunction · 0.85
splitNamespacesFunction · 0.85
inArrayFunction · 0.85

Tested by

no test coverage detected