Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Jul 24, 2018
1 parent c39b57e commit 43beac1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Expand Up @@ -13,7 +13,8 @@ module.exports = {
},
"globals": {
"BUNDLED": true,
"VERSION": true
"VERSION": true,
"ICONS": []
},
"rules": {
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
Expand Down
4 changes: 2 additions & 2 deletions src/js/core/height-viewport.js
@@ -1,4 +1,4 @@
import {css, endsWith, height, isIE, isNumeric, isString, offset, query, toFloat} from 'uikit-util';
import {css, endsWith, height, /* isIE, */ isNumeric, isString, offset, query, toFloat} from 'uikit-util';

export default {

Expand Down Expand Up @@ -77,7 +77,7 @@ export default {

// IE 11 fix (min-height on a flex container won't apply to its flex items)
let height;
if (/*isIE && */(height = Math.round(toFloat(css(this.$el, 'minHeight')))) >= offsetHeight(this.$el)) {
if (/* isIE && */(height = Math.round(toFloat(css(this.$el, 'minHeight')))) >= offsetHeight(this.$el)) {
css(this.$el, 'height', height);
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/core/img.js
@@ -1,4 +1,4 @@
import {attr, createEvent, css, Dimensions, endsWith, getImage, height, includes, isInView, isNumeric, noop, queryAll, startsWith, toFloat, trigger, width} from 'uikit-util';
import {createEvent, css, Dimensions, endsWith, getImage, height, includes, isInView, isNumeric, noop, queryAll, startsWith, toFloat, trigger, width} from 'uikit-util';

export default {

Expand Down
2 changes: 0 additions & 2 deletions src/js/icons.js
@@ -1,5 +1,3 @@
/* global ICONS */

function plugin(UIkit) {

if (plugin.installed) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/mixin/slider-drag.js
@@ -1,4 +1,4 @@
import {css, getPos, includes, isRtl, isTouch, off, on, pointerDown, pointerMove, pointerUp, preventClick, trigger} from 'uikit-util';
import {getPos, includes, isRtl, isTouch, off, on, pointerDown, pointerMove, pointerUp, preventClick, trigger} from 'uikit-util';

export default {

Expand Down Expand Up @@ -101,7 +101,7 @@ export default {
this.unbindMove = () => {
off();
this.unbindMove = null;
}
};
on(window, 'scroll', this.unbindMove);
on(document, pointerUp, this.end, true);

Expand Down

0 comments on commit 43beac1

Please sign in to comment.