update live tv image
This commit is contained in:
parent
9599bbbd35
commit
06b74be1fd
16 changed files with 122 additions and 168 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-overlay-behavior",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Provides a behavior for making an element an overlay",
|
||||
"private": true,
|
||||
|
@ -35,11 +35,11 @@
|
|||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-overlay-behavior",
|
||||
"_release": "1.0.5",
|
||||
"_release": "1.0.6",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.5",
|
||||
"commit": "f03cea265587c724cf3a85aef76b2ab7ccfd2b94"
|
||||
"tag": "v1.0.6",
|
||||
"commit": "9c77f077f4181b6f03cc986d0f3c224094edbc2d"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-overlay-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-overlay-behavior",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Provides a behavior for making an element an overlay",
|
||||
"private": true,
|
||||
|
|
|
@ -138,17 +138,6 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* Fired after the `iron-overlay` opens.
|
||||
* @event iron-overlay-opened
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fired after the `iron-overlay` closes.
|
||||
* @event iron-overlay-closed
|
||||
* @param {{canceled: (boolean|undefined)}} set to the `closingReason` attribute
|
||||
*/
|
||||
|
||||
listeners: {
|
||||
'click': '_onClick',
|
||||
'iron-resize': '_onIronResize'
|
||||
|
@ -425,6 +414,16 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired after the `iron-overlay` opens.
|
||||
* @event iron-overlay-opened
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fired after the `iron-overlay` closes.
|
||||
* @event iron-overlay-closed
|
||||
* @param {{canceled: (boolean|undefined)}} set to the `closingReason` attribute
|
||||
*/
|
||||
};
|
||||
|
||||
/** @polymerBehavior */
|
||||
|
|
|
@ -45,7 +45,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}
|
||||
|
||||
function currentOverlay() {
|
||||
return overlays[overlays.length-1];
|
||||
var i = overlays.length - 1;
|
||||
while (overlays[i] && !overlays[i].opened) {
|
||||
--i;
|
||||
}
|
||||
return overlays[i];
|
||||
}
|
||||
|
||||
function currentOverlayZ() {
|
||||
|
|
|
@ -141,6 +141,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
});
|
||||
});
|
||||
|
||||
test('close an overlay in proximity to another overlay', function(done) {
|
||||
var secondOverlay = fixture('basic');
|
||||
// Open and close a separate overlay.
|
||||
secondOverlay.open();
|
||||
secondOverlay.close();
|
||||
|
||||
// Open the overlay we care about.
|
||||
overlay.open();
|
||||
|
||||
// Wait for infinite recursion, otherwise we win:
|
||||
overlay.addEventListener('iron-overlay-closed', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
// Immediately close the first overlay:
|
||||
overlay.close();
|
||||
});
|
||||
|
||||
test('clicking an overlay does not close it', function(done) {
|
||||
runAfterOpen(overlay, function() {
|
||||
overlay.addEventListener('iron-overlay-closed', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue