Skip to main content
edited title
Link
Quill
  • 11.9k
  • 5
  • 40
  • 93

Better JavaScript code structure and html5 drap Drag and drop?Drop file handler

Added fiddle and clarification.
Source Link
Zack
  • 143
  • 3

Edit: JSFiddle (warning: I don't think preventDefault() works in the jsfiddle window, so it will probably redirect you, I didn't test with other browsers.) and another example with source. The second example has a similar code structure, but it's obviously a quick and dirty example; I want to know if there is a better way to do it. It mostly being event binding and maintaining a "const" between various unassociated event function calls.

Edit: JSFiddle (warning: I don't think preventDefault() works in the jsfiddle window, so it will probably redirect you, I didn't test with other browsers.) and another example with source. The second example has a similar code structure, but it's obviously a quick and dirty example; I want to know if there is a better way to do it. It mostly being event binding and maintaining a "const" between various unassociated event function calls.

Tweeted twitter.com/#!/StackCodeReview/status/168613171739885569
Title was confusing, grammer, typos.
Link
Zack
  • 143
  • 3

Better JavaScript code structure usingand html5 drap and drop?

Source Link
Zack
  • 143
  • 3
Loading