From 66f3f2d883e6ad1c18530a79a4192985c35d1afa Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 15 Apr 2014 10:39:47 -0600 Subject: [PATCH] Add displayName to components --- src/cursor-component.coffee | 1 + src/cursors-component.coffee | 1 + src/editor-component.coffee | 4 +++- src/editor-scroll-view-component.coffee | 2 ++ src/gutter-component.coffee | 2 ++ src/input-component.coffee | 2 ++ src/selection-component.coffee | 1 + src/selections-component.coffee | 2 ++ 8 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/cursor-component.coffee b/src/cursor-component.coffee index 515341e07..cbf24bbdc 100644 --- a/src/cursor-component.coffee +++ b/src/cursor-component.coffee @@ -4,6 +4,7 @@ SubscriberMixin = require './subscriber-mixin' module.exports = CursorComponent = React.createClass + displayName: 'CursorComponent' mixins: [SubscriberMixin] render: -> diff --git a/src/cursors-component.coffee b/src/cursors-component.coffee index 76c7f6ee5..e2251351f 100644 --- a/src/cursors-component.coffee +++ b/src/cursors-component.coffee @@ -7,6 +7,7 @@ CursorComponent = require './cursor-component' module.exports = CursorsComponent = React.createClass + displayName: 'CursorsComponent' mixins: [SubscriberMixin] cursorBlinkIntervalHandle: null diff --git a/src/editor-component.coffee b/src/editor-component.coffee index f06874fab..992e6c773 100644 --- a/src/editor-component.coffee +++ b/src/editor-component.coffee @@ -9,11 +9,13 @@ SubscriberMixin = require './subscriber-mixin' module.exports = EditorCompont = React.createClass + displayName: 'EditorComponent' + mixins: [SubscriberMixin] + pendingScrollTop: null pendingScrollLeft: null selectOnMouseMove: false - mixins: [SubscriberMixin] render: -> {focused, fontSize, lineHeight, fontFamily, showIndentGuide} = @state diff --git a/src/editor-scroll-view-component.coffee b/src/editor-scroll-view-component.coffee index 3695ab403..50599c4fb 100644 --- a/src/editor-scroll-view-component.coffee +++ b/src/editor-scroll-view-component.coffee @@ -9,6 +9,8 @@ SelectionsComponent = require './selections-component' module.exports = EditorScrollViewComponent = React.createClass + displayName: 'EditorScrollViewComponent' + render: -> {editor, fontSize, fontFamily, lineHeight, showIndentGuide, cursorBlinkPeriod, cursorBlinkResumeDelay} = @props {visibleRowRange, onInputFocused, onInputBlurred} = @props diff --git a/src/gutter-component.coffee b/src/gutter-component.coffee index 7d38933a6..a6d753dae 100644 --- a/src/gutter-component.coffee +++ b/src/gutter-component.coffee @@ -4,6 +4,8 @@ React = require 'react' module.exports = GutterComponent = React.createClass + displayName: 'GutterComponent' + render: -> {editor, visibleRowRange} = @props [startRow, endRow] = visibleRowRange diff --git a/src/input-component.coffee b/src/input-component.coffee index c1efaaaa8..bb2d1bf4f 100644 --- a/src/input-component.coffee +++ b/src/input-component.coffee @@ -5,6 +5,8 @@ React = require 'react' module.exports = InputComponent = React.createClass + displayName: 'InputComponent' + render: -> {className, style, onFocus, onBlur} = @props diff --git a/src/selection-component.coffee b/src/selection-component.coffee index 1e826a6e3..42a592f58 100644 --- a/src/selection-component.coffee +++ b/src/selection-component.coffee @@ -4,6 +4,7 @@ SubscriberMixin = require './subscriber-mixin' module.exports = SelectionComponent = React.createClass + displayName: 'SelectionComponent' mixins: [SubscriberMixin] render: -> diff --git a/src/selections-component.coffee b/src/selections-component.coffee index 645b89141..1a2ae93fe 100644 --- a/src/selections-component.coffee +++ b/src/selections-component.coffee @@ -4,6 +4,8 @@ SelectionComponent = require './selection-component' module.exports = SelectionsComponent = React.createClass + displayName: 'SelectionsComponent' + render: -> {editor} = @props