Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Cleanup Preview#5078

Merged
jasonLaster merged 2 commits into
firefox-devtools:masterfrom
jasonLaster:cleanup-preview
Jan 18, 2018
Merged

Cleanup Preview#5078
jasonLaster merged 2 commits into
firefox-devtools:masterfrom
jasonLaster:cleanup-preview

Conversation

@jasonLaster
Copy link
Copy Markdown
Contributor

Summary of Changes

  • cleans up the reducer a bit
  • prevents pre-mature highlighting and arrows
  • simplifies logic a bit

Comment thread src/reducers/ast.js
tokenPos,
cursorPos,
extra
...action.value,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread src/components/Editor/Preview/Popup.js Outdated
renderFunctionPreview() {
const { selectSourceURL, value } = this.props;
const { location } = value;
const root = this.getRoot();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this root here does not seem to be used within this function

@jasonLaster jasonLaster force-pushed the cleanup-preview branch 2 times, most recently from e3ce998 to 402ed4e Compare January 16, 2018 19:04
@jasonLaster jasonLaster merged commit 15e3e44 into firefox-devtools:master Jan 18, 2018
jasonLaster added a commit that referenced this pull request Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants