MCPcopy
hub / github.com/fabricjs/fabric.js / createBatchCommands

Function createBatchCommands

lib/event.js:310–323  ·  view source on GitHub ↗
(events)

Source from the content-addressed store, hash-verified

308
309/// Perform batch actions on multiple events.
310var createBatchCommands = function(events) {
311 return {
312 remove: function() { // Remove multiple events.
313 for (var key in events) {
314 events[key].remove();
315 }
316 },
317 add: function() { // Add multiple events.
318 for (var key in events) {
319 events[key].add();
320 }
321 }
322 };
323};
324
325/// Display error message in console.
326var createError = function(message, data) {

Callers 1

eventManagerFunction · 0.85

Calls 2

removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected