mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
fix circleCI errors
This commit is contained in:
@@ -116,8 +116,8 @@ const Editor = createClass({
|
||||
|
||||
// get top and bottom line numbers currently in editor viewport
|
||||
const viewportRect = codeMirror.getWrapperElement().getBoundingClientRect();
|
||||
const topVisibleLine = codeMirror.lineAtHeight(viewportRect.top, "window");
|
||||
const bottomVisibleLine = codeMirror.lineAtHeight(viewportRect.bottom, "window");
|
||||
const topVisibleLine = codeMirror.lineAtHeight(viewportRect.top, 'window');
|
||||
const bottomVisibleLine = codeMirror.lineAtHeight(viewportRect.bottom, 'window');
|
||||
|
||||
_.forEach(this.props.brew.text.split('\n'), (line, lineNumber)=>{
|
||||
if(this.props.renderer == 'legacy') {
|
||||
|
||||
@@ -80,7 +80,7 @@ const CodeEditor = createClass({
|
||||
|
||||
// Note: codeMirror passes a copy of itself in this callback. cm === this.codeMirror. Either one works.
|
||||
this.codeMirror.on('change', (cm)=>{this.props.onChange(cm.getValue());});
|
||||
this.codeMirror.on('viewportChange', _.debounce((cm)=>{this.props.onChange(cm.getValue());},200));
|
||||
this.codeMirror.on('viewportChange', _.debounce((cm)=>{this.props.onChange(cm.getValue());}, 200));
|
||||
this.updateSize();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user