Browse Source

Merge pull request #4232 from lexoyo/doc

fixes in docs and comments
pull/4238/head
Artur Arseniev 4 years ago
committed by GitHub
parent
commit
190f9d18a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CONTRIBUTING.md
  2. 2
      docs/api/block_manager.md
  3. 2
      src/utils/Droppable.js

2
CONTRIBUTING.md

@ -13,7 +13,7 @@ We welcome any type of contribution, not only code. Like for example:
## Your First Contribution ## Your First Contribution
Working on your first Pull Request? You can learn how from this **free** series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github). Working on your first Pull Request? You can learn how from this **free** series, [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github).
## Submitting code ## Submitting code

2
docs/api/block_manager.md

@ -171,7 +171,7 @@ blockManager.render();
// Render new set of blocks // Render new set of blocks
const blocks = blockManager.getAll(); const blocks = blockManager.getAll();
const filtered = blocks.filter(block => block.get('category') == 'sections') const filtered = blocks.filter(block => block.get('category').id == 'Sections')
blockManager.render(filtered); blockManager.render(filtered);
// Or a new set from an array // Or a new set from an array

2
src/utils/Droppable.js

@ -54,7 +54,7 @@ export default class Droppable {
method(document, 'pointerup', this.handleDrop); method(document, 'pointerup', this.handleDrop);
method(frameEl, 'pointerout', this.handleDragLeave); method(frameEl, 'pointerout', this.handleDragLeave);
// Test with touche devices (seems like frameEl is not capturing pointer events). // Test with touch devices (seems like frameEl is not capturing pointer events).
// on/off(document, 'pointermove', sorter.onMove); // for the sorter // on/off(document, 'pointermove', sorter.onMove); // for the sorter
// enable && this.handleDragEnter({}); // no way to use pointerenter/pointerout // enable && this.handleDragEnter({}); // no way to use pointerenter/pointerout
} }

Loading…
Cancel
Save