Ver Fonte

lint problems

Adam Shaw há 8 anos atrás
pai
commit
676980db60

+ 1 - 0
src/component/interactions/DateSelecting.ts

@@ -1,3 +1,4 @@
+import * as $ from 'jquery'
 import { enableCursor, disableCursor, preventSelection, compareNumbers } from '../../util'
 import { enableCursor, disableCursor, preventSelection, compareNumbers } from '../../util'
 import HitDragListener from '../../common/HitDragListener'
 import HitDragListener from '../../common/HitDragListener'
 import ComponentFootprint from '../../models/ComponentFootprint'
 import ComponentFootprint from '../../models/ComponentFootprint'

+ 1 - 0
src/util.ts

@@ -1,3 +1,4 @@
+import * as $ from 'jquery'
 import * as moment from 'moment'
 import * as moment from 'moment'
 import { applyStyle, computeHeightAndMargins } from './util/dom'
 import { applyStyle, computeHeightAndMargins } from './util/dom'
 
 

+ 1 - 1
src/util/dom.ts

@@ -112,7 +112,7 @@ const closestMethod = Element.prototype.closest || function(selector) {
     }
     }
     el = el.parentElement || el.parentNode
     el = el.parentElement || el.parentNode
   } while (el !== null && el.nodeType === 1)
   } while (el !== null && el.nodeType === 1)
-  return null;
+  return null
 }
 }
 
 
 export function elementMatches(el: HTMLElement, selector: string) {
 export function elementMatches(el: HTMLElement, selector: string) {

+ 6 - 6
tests/automated/legacy/getEdges.js

@@ -14,13 +14,13 @@ describe('getEdges', function() {
   )
   )
 
 
   defineTests(
   defineTests(
-   'when border',
-   { border: '5px solid red' }
-  );
+    'when border',
+    { border: '5px solid red' }
+  )
   defineTests(
   defineTests(
-   'when border and padding',
-   { border: '5px solid red', padding: '5px 10px' }
-  );
+    'when border and padding',
+    { border: '5px solid red', padding: '5px 10px' }
+  )
 
 
   function defineTests(description, cssProps) {
   function defineTests(description, cssProps) {
     describe(description, function() {
     describe(description, function() {