Bug 1555361 - Remove the basetext binding r=surkov

Differential Revision: https://phabricator.services.mozilla.com/D33016

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2019-07-19 03:22:09 +00:00
Родитель 828a74cb4f
Коммит b3fda3a4dd
1 изменённых файлов: 0 добавлений и 34 удалений

Просмотреть файл

@ -22,38 +22,4 @@
</implementation>
</binding>
<binding id="basetext" extends="chrome://global/content/bindings/general.xml#basecontrol">
<implementation>
<!-- public implementation -->
<property name="label" onset="this.setAttribute('label',val); return val;"
onget="return this.getAttribute('label');"/>
<property name="crop" onset="this.setAttribute('crop',val); return val;"
onget="return this.getAttribute('crop');"/>
<property name="image" onset="this.setAttribute('image',val); return val;"
onget="return this.getAttribute('image');"/>
<property name="command" onset="this.setAttribute('command',val); return val;"
onget="return this.getAttribute('command');"/>
<property name="accessKey">
<getter>
<![CDATA[
return this.getAttribute("accesskey");
]]>
</getter>
<setter>
<![CDATA[
// Always store on the control
this.setAttribute("accesskey", val);
// If there is a label, change the accesskey on the labelElement
// if it's also set there
let labelElement = document.getElementsByAttribute("control", this.id)[0];
if (labelElement) {
labelElement.setAttribute("accesskey", val);
}
return val;
]]>
</setter>
</property>
</implementation>
</binding>
</bindings>