Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: es6ify 'Breaking Changes' and 'File' API pages #15507

Merged
merged 3 commits into from Dec 5, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

docs: change normal to arrow functions in File object docs

  • Loading branch information...
ntocampos authored and zcbenz committed Oct 31, 2018
commit e244c6176f7a659a71ec0ab2862c22e6ac44ff50
@@ -15,15 +15,15 @@ Example of getting a real path from a dragged-onto-the-app file:
</div>

<script>
document.addEventListener('drop', function (e) {
document.addEventListener('drop', (e) => {
e.preventDefault();
e.stopPropagation();
for (let f of e.dataTransfer.files) {
for (const f of e.dataTransfer.files) {
console.log('File(s) you dragged here: ', f.path)
}
});
document.addEventListener('dragover', function (e) {
document.addEventListener('dragover', (e) => {
e.preventDefault();
e.stopPropagation();
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.