cleverstyle-widgets
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -26,3 +26,3 @@ { | ||
], | ||
"version" : "0.7.3", | ||
"version" : "0.7.4", | ||
"homepage" : "https://github.com/nazar-pc/CleverStyle-Widgets", | ||
@@ -29,0 +29,0 @@ "author" : "Nazar Mokrynskyi <nazar@mokrynskyi.com>", |
@@ -8,4 +8,2 @@ // Generated by LiveScript 1.5.0 | ||
(function(){ | ||
var html; | ||
html = document.documentElement; | ||
csw.behaviors.cswDropdown = [{ | ||
@@ -66,3 +64,3 @@ hostAttributes: { | ||
} else { | ||
this.style.right = (html.clientWidth - target_position.right - scrollX) + 'px'; | ||
this.style.right = (document.documentElement.clientWidth - target_position.right - scrollX) + 'px'; | ||
} | ||
@@ -69,0 +67,0 @@ this.style.top = target_position.top + target_position.height + 'px'; |
@@ -8,5 +8,2 @@ // Generated by LiveScript 1.5.0 | ||
(function(){ | ||
var body, html; | ||
body = document.body; | ||
html = document.documentElement; | ||
csw.behaviors.cswModal = [ | ||
@@ -63,3 +60,3 @@ csw.behaviors['this'], { | ||
_opened_changed: function(opened){ | ||
var ref$, this$ = this; | ||
var ref$, body, this$ = this; | ||
if (opened === undefined) { | ||
@@ -69,6 +66,7 @@ return; | ||
if (!((ref$ = this.parentNode) != null && ref$.matches('html'))) { | ||
html.appendChild(this); | ||
document.documentElement.appendChild(this); | ||
} | ||
this.distributeContent(true); | ||
Polymer.dom.flush(); | ||
body = document.body; | ||
body.modalOpened = body.modalOpened || 0; | ||
@@ -83,3 +81,3 @@ if (opened) { | ||
this.fire('open'); | ||
document.body.setAttribute('modal-opened', ''); | ||
body.setAttribute('modal-opened', ''); | ||
setTimeout(function(){ | ||
@@ -94,3 +92,3 @@ this$.setAttribute('opened', ''); | ||
if (!body.modalOpened) { | ||
document.body.removeAttribute('modal-opened'); | ||
body.removeAttribute('modal-opened'); | ||
} | ||
@@ -97,0 +95,0 @@ } |
@@ -8,4 +8,2 @@ // Generated by LiveScript 1.5.0 | ||
(function(){ | ||
var html; | ||
html = document.documentElement; | ||
csw.behaviors.cswTooltip = [ | ||
@@ -96,3 +94,3 @@ csw.behaviors.tooltip, { | ||
}; | ||
client_width = html.clientWidth; | ||
client_width = document.documentElement.clientWidth; | ||
this.showQuick = false; | ||
@@ -99,0 +97,0 @@ if (element_position.top > tooltip_size.height) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
272277
2705