Timeline for Drag and Drop file handler
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 16, 2016 at 14:45 | history | edited | Quill | CC BY-SA 3.0 |
edited title
|
Feb 13, 2012 at 13:47 | comment | added | ANeves |
On the var : a variable declared with var is in the local scope, one without is in the global scope. So when you assign to it in one function, it is available in the other as the variable is in the global scope; while when you use var dragSrc = this; then dragSrc is only available inside that function (... so while outside, you will access the global-scope variable with the same name, which is undefined).
|
|
Feb 12, 2012 at 10:38 | vote | accept | Zack | ||
Feb 12, 2012 at 9:20 | history | edited | Zack | CC BY-SA 3.0 |
Added fiddle and clarification.
|
Feb 12, 2012 at 8:31 | history | tweeted | twitter.com/#!/StackCodeReview/status/168613171739885569 | ||
Feb 12, 2012 at 8:25 | answer | added | Dagg | timeline score: 2 | |
Feb 12, 2012 at 8:02 | history | edited | Zack | CC BY-SA 3.0 |
Title was confusing, grammer, typos.
|
Feb 12, 2012 at 7:53 | history | asked | Zack | CC BY-SA 3.0 |