Sha256: e9ee7035875e2bd4d2672d4d8d956950d2c9b45e54a486671e64d9712a4bcac5
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
rio.components.Image = new rio.Component.create(rio.components.Base, "Image", { attrAccessors: ["src", "title"], attrEvents: ["click"], methods: { buildHtml: function() { var imgHtml = rio.Tag.img(""); this.src.bind(function(src) { imgHtml.src = rio.url(src); }); this.title.bind(function(title) { imgHtml.title = title; }); imgHtml.observe("click", function() { this.fire("click"); }.bind(this)); return imgHtml; } } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riojs-0.0.2 | public/javascripts/components/image.js |
riojs-0.0.1 | public/javascripts/components/image.js |
riojs-0.0.0 | public/javascripts/components/image.js |