Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this.subscriptions = new CompositeDisposable();
this.panel = null;
this.didCloseItem = false;
this.domNode = document.createElement('div');
this.domNode.className = 'react-atom-panel';
}
constructor(props) {
super(props);
this.subscriptions = new CompositeDisposable();
this.dockItem = null;
this.didCloseItem = false;
if (props.stubItem) {
this.domNode = this.props.stubItem.getElement();
} else {
this.domNode = document.createElement('div');
this.domNode.className = 'react-atom-dockitem';
}
}
constructor(name, props = {}, uri) {
this.emitter = new Emitter();
this.subscriptions = new CompositeDisposable();
this.name = name;
this.props = props;
this.uri = uri;
this.key = ++key;
this.element = document.createElement('div');
this.element.classList.add(`github-StubItem-${name}`);
this.realItem = null;
this.realItemPromise = new Promise(res => {
this.resolveRealItemPromise = res;
});
}
constructor(props, context) {
super(props, context);
this.state = {openEditors: this.props.workspace.getTextEditors()};
this.subscriptions = new CompositeDisposable();
}
constructor(props, context) {
super(props, context);
this.subscriptions = new CompositeDisposable();
this.state = {openEditors: this.props.workspace.getTextEditors()};
}
constructor({ location, dock, viewRegistry } = {}) {
this.location = location;
this.emitter = new Emitter();
this.subscriptions = new CompositeDisposable();
this.panels = [];
this.dock = dock;
this.viewRegistry = viewRegistry;
}
constructor ({config} = {}) {
this.config = config
this.subscriptions = new CompositeDisposable()
this.textmateRegistry = new FirstMate.GrammarRegistry({maxTokensPerLine: 100, maxLineLength: 1000})
this.clear()
}
constructor({ applicationDelegate }) {
this.applicationDelegate = applicationDelegate;
this.subscriptions = new CompositeDisposable();
this.emitter = new Emitter();
}
constructor ({id, bufferProxyId, bufferProxyURI, siteId, router, didDispose}) {
this.id = id
this.bufferProxyId = bufferProxyId
this.bufferProxyURI = bufferProxyURI
this.subscriptions = new CompositeDisposable()
this.didDispose = didDispose || NOOP
if (didDispose) {
this.subscriptions.add(
router.onNotification(`/buffers/${id}`, this.receiveBufferUpdate.bind(this))
)
this.subscriptions.add(
router.onNotification(`/editors/${id}/disposal`, this.dispose.bind(this))
)
}
}
constructor (network) {
this.network = network
this.emitter = new Emitter()
this.subscriptions = new CompositeDisposable()
this.subscriptions.add(network.onReceive(this.receive.bind(this)))
this.nextRequestId = 0
this.requestPromiseResolveCallbacks = new Map()
this.peerIdsByRequestId = new Map()
this.lastReceivePromise = Promise.resolve()
}