Skip to content

Commit 24e9947

Browse files
author
Tim Berners-Lee
committed
FIx typo; switch babel preset deprecated
1 parent 7aba8f7 commit 24e9947

3 files changed

Lines changed: 132 additions & 29 deletions

File tree

package-lock.json

Lines changed: 125 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "npm run build-lib",
1313
"postversion": "git push origin master --follow-tags",
1414
"prepublishOnly": "npm run build",
15-
"standard": "standard",
15+
"standard": "standard src",
1616
"test": "npm run standard"
1717
},
1818
"repository": {
@@ -49,7 +49,7 @@
4949
},
5050
"devDependencies": {
5151
"babel-cli": "^6.18.0",
52-
"babel-preset-es2015": "^6.18.0",
52+
"babel-preset-env": ">=1.7.0",
5353
"standard": "^10.0.2"
5454
},
5555
"standard": {

src/widgets/dragAndDrop.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ function makeDropTarget (ele, droppedURIHandler, droppedFileHandler) {
1919
console.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect)
2020
if (this.style) { // necessary not sure when
2121
this.savedStyle = {}
22-
this.savedStye.border = this.style.border
22+
this.savedStyle.border = this.style.border
2323
this.savedStyle.backgroundColor = this.style.backgroundColor
2424
this.savedStyle.borderRadius = this.style.borderRadius
2525

2626
this.style.backgroundColor = '#ccc'
27-
this.style.border = "0.25em dashed black"
28-
this.style.borderRadius = "0.3em"
27+
this.style.border = '0.25em dashed black'
28+
this.style.borderRadius = '0.3em'
2929
}
3030

3131
e.dataTransfer.dropEffect = 'link'
@@ -34,9 +34,9 @@ function makeDropTarget (ele, droppedURIHandler, droppedFileHandler) {
3434
var dragleaveListener = function (e) {
3535
console.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect)
3636
if (this.savedStyle) {
37-
this.style.border = this.savedStye.border
37+
this.style.border = this.savedStyle.border
3838
this.style.backgroundColor = this.savedStyle.backgroundColor
39-
this.style.borderRadius = this.savedStyle.borderRadius
39+
this.style.borderRadius = this.savedStyle.borderRadius
4040
} else {
4141
this.style.backgroundColor = 'white'
4242
}

0 commit comments

Comments
 (0)