@polymer/iron-a11y-announcer
Advanced tools
Comparing version 3.0.0-pre.4 to 3.0.0-pre.6
@@ -1,5 +0,4 @@ | ||
import { html } from '../../polymer/polymer.js'; | ||
import { IronA11yAnnouncer } from '../iron-a11y-announcer.js'; | ||
import '../../polymer/polymer.js'; | ||
import '../iron-a11y-announcer.js'; | ||
import '../../paper-button/paper-button.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
/* | ||
@@ -14,3 +13,3 @@ Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
Polymer({ | ||
_template: html` | ||
_template: Polymer.html` | ||
<style> | ||
@@ -41,3 +40,3 @@ :host { | ||
attached: function() { | ||
IronA11yAnnouncer.requestAvailability(); | ||
Polymer.IronA11yAnnouncer.requestAvailability(); | ||
}, | ||
@@ -44,0 +43,0 @@ |
@@ -1,6 +0,5 @@ | ||
import { html } from '../polymer/polymer.js'; | ||
import { Polymer as Polymer$0 } from '../polymer/lib/legacy/polymer-fn.js'; | ||
import '../polymer/polymer.js'; | ||
export const IronA11yAnnouncer = Polymer$0({ | ||
_template: html` | ||
Polymer.IronA11yAnnouncer = Polymer({ | ||
_template: Polymer.html` | ||
<style> | ||
@@ -37,4 +36,4 @@ :host { | ||
created: function() { | ||
if (!IronA11yAnnouncer.instance) { | ||
IronA11yAnnouncer.instance = this; | ||
if (!Polymer.IronA11yAnnouncer.instance) { | ||
Polymer.IronA11yAnnouncer.instance = this; | ||
} | ||
@@ -64,10 +63,10 @@ | ||
IronA11yAnnouncer.instance = null; | ||
Polymer.IronA11yAnnouncer.instance = null; | ||
IronA11yAnnouncer.requestAvailability = function() { | ||
if (!IronA11yAnnouncer.instance) { | ||
IronA11yAnnouncer.instance = document.createElement('iron-a11y-announcer'); | ||
Polymer.IronA11yAnnouncer.requestAvailability = function() { | ||
if (!Polymer.IronA11yAnnouncer.instance) { | ||
Polymer.IronA11yAnnouncer.instance = document.createElement('iron-a11y-announcer'); | ||
} | ||
document.body.appendChild(IronA11yAnnouncer.instance); | ||
document.body.appendChild(Polymer.IronA11yAnnouncer.instance); | ||
}; |
{ | ||
"name": "@polymer/iron-a11y-announcer", | ||
"flat": true, | ||
"version": "3.0.0-pre.4", | ||
"version": "3.0.0-pre.6", | ||
"description": "A singleton element that simplifies announcing text to screen readers.", | ||
@@ -22,11 +22,11 @@ "contributors": [ | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.4" | ||
"@polymer/polymer": "^3.0.0-pre.6" | ||
}, | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^3.0.0-pre.4", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.4", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.4", | ||
"@polymer/paper-button": "^3.0.0-pre.4", | ||
"@polymer/test-fixture": "^3.0.0-pre.4", | ||
"wct-browser-legacy": "0.0.1-pre.10", | ||
"@polymer/iron-component-page": "^3.0.0-pre.6", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.6", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.6", | ||
"@polymer/paper-button": "^3.0.0-pre.6", | ||
"@polymer/test-fixture": "^3.0.0-pre.6", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
"@webcomponents/webcomponentsjs": "^1.0.0" | ||
@@ -33,0 +33,0 @@ }, |
Sorry, the diff of this file is not supported yet
20203
156