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 / filA6F4FBFE76D5370E2664775820867367 < prev    next >
Text File  |  2010-07-12  |  571b  |  17 lines

  1. XB.UI.Behaviour.Image = XB.UI.Behaviour.extend({
  2.     name: "image",
  3.     nodeName: "image",
  4.     
  5.     constructor: function(comment, element, widgetInstanceId, builder) {
  6.         this.base(comment, element, widgetInstanceId, builder);
  7.     },
  8.     
  9.     build: function() {
  10.         this.buildFake();
  11.         this.on(this.fake, "DOMSubtreeModified", this.onModified, false, this);
  12.     },
  13.     onModified: function() {
  14.         var path = this.fake.textContent;
  15.         this.node.setAttribute("src", this.builder.resolveURI(path, this.widgetInstanceId));
  16.     }
  17. });