Sha256: 5fd5e80523778da69aadc1874cb621144e4a0073bf2402021dcbc6a73d11e2db
Contents?: true
Size: 813 Bytes
Versions: 8
Compression:
Stored size: 813 Bytes
Contents
rio.Application.require("components/box"); rio.components.Playground = rio.Component.create(rio.components.Base, "Playground", { methods: { buildHtml: function() { var textarea = rio.Tag.textarea(opener.rio.Cookie.get("playgroundContent"), { className: "scripts" }); var delayedRender = new rio.DelayedTask(); var render = function() { delayedRender.delay(1000, function() { opener.rio.Cookie.set("playgroundContent", textarea.value); if (opener.rio.app.getCurrentPage().constructor = opener.rio.pages.PlaygroundPage) { opener.rio.app.reboot(); } }); }; textarea.observe("keypress", render); if (Prototype.Browser.IE) { textarea.setStyle({ height: "500px" }); } return textarea; }, focus: function() { this.html().focus(); } } });
Version data entries
8 entries across 8 versions & 1 rubygems