diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-29 02:57:35 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-29 02:57:35 +0100 |
commit | 3de89ab16c320350f20c828763b11a47cf2a2807 (patch) | |
tree | 3ad523407ca1a2db6c2560ecab546c4a57c728c4 /web/src/js/store/view.js | |
parent | 9192427d7b845a6389c4a44c930e067c479cdf0d (diff) | |
download | mitmproxy-3de89ab16c320350f20c828763b11a47cf2a2807.tar.gz mitmproxy-3de89ab16c320350f20c828763b11a47cf2a2807.tar.bz2 mitmproxy-3de89ab16c320350f20c828763b11a47cf2a2807.zip |
web: use es6 modules
Diffstat (limited to 'web/src/js/store/view.js')
-rw-r--r-- | web/src/js/store/view.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js index d628d46b..71b159bf 100644 --- a/web/src/js/store/view.js +++ b/web/src/js/store/view.js @@ -1,7 +1,7 @@ -var EventEmitter = require('events').EventEmitter; -var _ = require("lodash"); +import {EventEmitter} from 'events'; +import _ from "lodash"; -var utils = require("../utils.js"); +import utils from "../utils.js"; function SortByStoreOrder(elem) { return this.store.index(elem.id); @@ -12,7 +12,7 @@ var default_filt = function (elem) { return true; }; -function StoreView(store, filt, sortfun) { +export function StoreView(store, filt, sortfun) { EventEmitter.call(this); this.store = store; @@ -109,7 +109,3 @@ _.extend(StoreView.prototype, EventEmitter.prototype, { } } }); - -module.exports = { - StoreView: StoreView -};
\ No newline at end of file |