(events)
| 308 | |
| 309 | /// Perform batch actions on multiple events. |
| 310 | var 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. |
| 326 | var createError = function(message, data) { |
no test coverage detected