home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / filDBCFA92594FF1F18F5248F8F0AD6B3DF < prev    next >
Text File  |  2010-07-12  |  424b  |  15 lines

  1. XB.UI.Behaviour.Attribute = XB.UI.Behaviour.extend({
  2.     append: function () {
  3.     },
  4.     
  5.     build: function() {
  6.         this.on(this.node, "DOMSubtreeModified", this.onModified, false, this);
  7.         this.base();
  8.     },
  9.     
  10.     onModified: function() {
  11.         var name = this.element.getAttribute("name");
  12.         var value = this.node.textContent;
  13.         this.parent.setAttribute(name, value);
  14.     }
  15. });