Comparing version 0.8.3 to 0.8.4
@@ -33,8 +33,8 @@ import AppBar from './src/appbar' | ||
import View from './src/view' | ||
import events from './src/module/events' | ||
import attributes from './src/module/attributes' | ||
import build from './src/module/build' | ||
import dataset from './src/module/dataset' | ||
import device from './src/module/device' | ||
import display from './src/mixin/display' | ||
import events from './src/module/attach' | ||
import events from './src/module/events' | ||
import emitter from './src/module/emitter' | ||
@@ -50,4 +50,4 @@ import jsonToHTML from './src/module/jsontohtml' | ||
Selecter, Slider, Snackbar, Switch, Switcher, Tabs, TabView, Text, Textfield, Toolbar, Tooltip, | ||
View, events, attributes, build, dataset, display, events, emitter, jsonToHTML, mediator, | ||
View, attributes, build, dataset, device, display, events, emitter, jsonToHTML, mediator, | ||
observer, smoothscroll | ||
} |
{ | ||
"name": "material", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "A lightweight implementation of Material Design Components for the web - ES6", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,4 @@ // based on the work of | ||
const device = {} | ||
const os = ['ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television'] | ||
const type = ['mobile', 'tablet', 'desktop'] | ||
const changeOrientationList = [] | ||
@@ -241,3 +242,3 @@ | ||
function cleanClasses () { | ||
const classes = ['mobile', 'tablet', 'desktop', 'ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television'] | ||
const classes = [...os, ...type] | ||
for (let i = 0; i < classes.length; i++) { | ||
@@ -367,16 +368,4 @@ removeClass(classes[i]) | ||
device.type = findMatch(['mobile', 'tablet', 'desktop']) | ||
device.os = findMatch([ | ||
'ios', | ||
'iphone', | ||
'ipad', | ||
'ipod', | ||
'android', | ||
'blackberry', | ||
'macos', | ||
'windows', | ||
'fxos', | ||
'meego', | ||
'television' | ||
]) | ||
device.type = findMatch(type) | ||
device.os = findMatch(os) | ||
@@ -394,5 +383,4 @@ function setOrientationCache () { | ||
userAgent = window.navigator.userAgent.toLowerCase() | ||
console.log('UA', userAgent) | ||
device.type = findMatch(['mobile', 'tablet', 'desktop']) | ||
device.os = findMatch(['ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television']) | ||
device.type = findMatch(type) | ||
device.os = findMatch(os) | ||
setOrientationCache() | ||
@@ -399,0 +387,0 @@ applyClass() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
465905
10996