mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 21:39:26 +00:00
- Also added linter configuration, and make linter fail on error - fixing ES6 errors and added ES6 transformer - gulp target to try local build - linted gulpfile - cant hook into gulp lint yet, because gulp does currently not support ES6 which some rules demand, since gulp cant transpile itself, we have a chicken and egg problem. - ES6 transpiler for test runner - removed old linter config - adapted editorconfig to reflect linter config
13 lines
338 B
JavaScript
13 lines
338 B
JavaScript
const flux = require('flux');
|
|
const _ = require('lodash');
|
|
|
|
const AppDispatcher = new flux.Dispatcher();
|
|
|
|
AppDispatcher.dispatch = _.wrap(flux.Dispatcher.prototype.dispatch, function(func) {
|
|
const args = Array.prototype.slice.call(arguments, 1);
|
|
// console.log(args[0]);
|
|
func.apply(this, args);
|
|
});
|
|
|
|
module.exports = AppDispatcher;
|