Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "material", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "A lightweight implementation of Material Design Components - ES6", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,2 +87,7 @@ 'use strict' | ||
if (this.options.container) { | ||
if (this.options.container.root) { | ||
this.container = this.options.container.root | ||
} else { | ||
this.container = this.options.container | ||
} | ||
insert(this.root, this.options.container) | ||
@@ -177,11 +182,6 @@ } | ||
hide () { | ||
console.log('hide') | ||
this.root.style.display = 'none' | ||
destroy () { | ||
this.container.removeChild(this.root) | ||
} | ||
show () { | ||
this.root.style.display = 'inherit' | ||
} | ||
/** | ||
@@ -188,0 +188,0 @@ * method handleClick |
@@ -1,2 +0,1 @@ | ||
import create from '../element/create' | ||
import insert from '../element/insert' | ||
@@ -42,3 +41,4 @@ import offset from '../element/offset' | ||
let ripple = create('div', 'material-ripple') | ||
let ripple = document.createElement('div') | ||
ripple.classList.add('material-ripple') | ||
let end = coordinate(offs) | ||
@@ -52,3 +52,3 @@ let initial = { | ||
ripple.style.top = initial.top | ||
//ripple.style.opacity = defaults.opacity[1] | ||
// ripple.style.opacity = defaults.opacity[1] | ||
ripple.style.transition = defaults.transition | ||
@@ -64,3 +64,3 @@ | ||
ripple.style.height = end.size | ||
//ripple.style.opacity = defaults.opacity[1] | ||
// ripple.style.opacity = defaults.opacity[1] | ||
}, 1) | ||
@@ -92,3 +92,3 @@ | ||
function coordinate (o) { | ||
var size = o.width | ||
var size = o.height | ||
var top = -o.height / 2 | ||
@@ -98,2 +98,3 @@ | ||
top = -(o.width - o.height / 2) | ||
size = o.width | ||
} | ||
@@ -108,2 +109,2 @@ | ||
export default init | ||
export default init |
@@ -67,3 +67,3 @@ 'use strict' | ||
select: (item) => { | ||
console.log('click') | ||
// console.log('click') | ||
this.selected = item | ||
@@ -70,0 +70,0 @@ this.click(item) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
622907
10330