define("amber/Canvas", ["amber_vm/smalltalk","amber_vm/nil","amber_vm/_st"], function(smalltalk,nil,_st){ smalltalk.addPackage('Canvas'); smalltalk.packages["Canvas"].transport = {"type":"amd","amdNamespace":"amber"}; smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas'); smalltalk.addMethod( smalltalk.method({ selector: "a", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("a"); return $1; }, function($ctx1) {$ctx1.fill(self,"a",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "abbr", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("abbr"); return $1; }, function($ctx1) {$ctx1.fill(self,"abbr",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "address", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("address"); return $1; }, function($ctx1) {$ctx1.fill(self,"address",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "area", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("area"); return $1; }, function($ctx1) {$ctx1.fill(self,"area",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "article", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("article"); return $1; }, function($ctx1) {$ctx1.fill(self,"article",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "aside", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("aside"); return $1; }, function($ctx1) {$ctx1.fill(self,"aside",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "audio", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("audio"); return $1; }, function($ctx1) {$ctx1.fill(self,"audio",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "base", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("base"); return $1; }, function($ctx1) {$ctx1.fill(self,"base",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "blockquote", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("blockquote"); return $1; }, function($ctx1) {$ctx1.fill(self,"blockquote",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "body", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("body"); return $1; }, function($ctx1) {$ctx1.fill(self,"body",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "br", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("br"); return $1; }, function($ctx1) {$ctx1.fill(self,"br",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "button", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("button"); return $1; }, function($ctx1) {$ctx1.fill(self,"button",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "canvas", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("canvas"); return $1; }, function($ctx1) {$ctx1.fill(self,"canvas",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "caption", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("caption"); return $1; }, function($ctx1) {$ctx1.fill(self,"caption",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "cite", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("cite"); return $1; }, function($ctx1) {$ctx1.fill(self,"cite",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "code", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("code"); return $1; }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "col", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("col"); return $1; }, function($ctx1) {$ctx1.fill(self,"col",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "colgroup", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("colgroup"); return $1; }, function($ctx1) {$ctx1.fill(self,"colgroup",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "command", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("command"); return $1; }, function($ctx1) {$ctx1.fill(self,"command",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "datalist", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("datalist"); return $1; }, function($ctx1) {$ctx1.fill(self,"datalist",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "dd", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("dd"); return $1; }, function($ctx1) {$ctx1.fill(self,"dd",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "del", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("del"); return $1; }, function($ctx1) {$ctx1.fill(self,"del",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "details", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("details"); return $1; }, function($ctx1) {$ctx1.fill(self,"details",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "div", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("div"); return $1; }, function($ctx1) {$ctx1.fill(self,"div",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "div:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._div())._with_(aBlock); return $1; }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "div"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "dl", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("dl"); return $1; }, function($ctx1) {$ctx1.fill(self,"dl",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "dt", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("dt"); return $1; }, function($ctx1) {$ctx1.fill(self,"dt",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "em", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("em"); return $1; }, function($ctx1) {$ctx1.fill(self,"em",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "embed", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("embed"); return $1; }, function($ctx1) {$ctx1.fill(self,"embed",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "entity:", fn: function (aString){ var self=this; var result; return smalltalk.withContext(function($ctx1) { var $1; result=_st(_st(""._asJQuery())._html_(_st("&".__comma(aString)).__comma(";")))._text(); $1=_st(_st(result)._size()).__eq((1)); if(! smalltalk.assert($1)){ self._error_("Not an HTML entity: ".__comma(aString)); }; self._with_(result); return self}, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},smalltalk.HTMLCanvas)})}, messageSends: ["text", "html:", ",", "asJQuery", "ifFalse:", "error:", "=", "size", "with:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "fieldset", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("fieldset"); return $1; }, function($ctx1) {$ctx1.fill(self,"fieldset",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "figcaption", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("figcaption"); return $1; }, function($ctx1) {$ctx1.fill(self,"figcaption",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "figure", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("figure"); return $1; }, function($ctx1) {$ctx1.fill(self,"figure",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "footer", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("footer"); return $1; }, function($ctx1) {$ctx1.fill(self,"footer",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "form", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("form"); return $1; }, function($ctx1) {$ctx1.fill(self,"form",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h1", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h1"); return $1; }, function($ctx1) {$ctx1.fill(self,"h1",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h1:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h1())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h1"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h2", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h2"); return $1; }, function($ctx1) {$ctx1.fill(self,"h2",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h2:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h2())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h2"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h3", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h3"); return $1; }, function($ctx1) {$ctx1.fill(self,"h3",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h3:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h3())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h3"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h4", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h4"); return $1; }, function($ctx1) {$ctx1.fill(self,"h4",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h4:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h4())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h4"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h5", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h5"); return $1; }, function($ctx1) {$ctx1.fill(self,"h5",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h5:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h5())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h5"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h6", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("h6"); return $1; }, function($ctx1) {$ctx1.fill(self,"h6",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "h6:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._h6())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "h6"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "head", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("head"); return $1; }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "header", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("header"); return $1; }, function($ctx1) {$ctx1.fill(self,"header",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "hgroup", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("hgroup"); return $1; }, function($ctx1) {$ctx1.fill(self,"hgroup",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "hr", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("hr"); return $1; }, function($ctx1) {$ctx1.fill(self,"hr",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "html", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("html"); return $1; }, function($ctx1) {$ctx1.fill(self,"html",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "iframe", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("iframe"); return $1; }, function($ctx1) {$ctx1.fill(self,"iframe",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "iframe:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._iframe())._src_(aString); return $1; }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},smalltalk.HTMLCanvas)})}, messageSends: ["src:", "iframe"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "img", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("img"); return $1; }, function($ctx1) {$ctx1.fill(self,"img",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "img:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._img())._src_(aString); return $1; }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},smalltalk.HTMLCanvas)})}, messageSends: ["src:", "img"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "initialize", fn: function (){ var self=this; function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)} return smalltalk.withContext(function($ctx1) { var $1; smalltalk.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []); $1=self["@root"]; if(($receiver = $1) == nil || $receiver == undefined){ self["@root"]=_st($TagBrush())._fromString_canvas_("div",self); self["@root"]; } else { $1; }; return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLCanvas)})}, messageSends: ["initialize", "ifNil:", "fromString:canvas:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "initializeFromJQuery:", fn: function (aJQuery){ var self=this; function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)} return smalltalk.withContext(function($ctx1) { self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self); return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas)})}, messageSends: ["fromJQuery:canvas:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "input", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("input"); return $1; }, function($ctx1) {$ctx1.fill(self,"input",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "label", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("label"); return $1; }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "legend", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("legend"); return $1; }, function($ctx1) {$ctx1.fill(self,"legend",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "li", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("li"); return $1; }, function($ctx1) {$ctx1.fill(self,"li",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "li:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._li())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "li"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "link", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("link"); return $1; }, function($ctx1) {$ctx1.fill(self,"link",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "map", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("map"); return $1; }, function($ctx1) {$ctx1.fill(self,"map",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "mark", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("mark"); return $1; }, function($ctx1) {$ctx1.fill(self,"mark",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "menu", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("menu"); return $1; }, function($ctx1) {$ctx1.fill(self,"menu",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "meta", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("meta"); return $1; }, function($ctx1) {$ctx1.fill(self,"meta",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "nav", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("nav"); return $1; }, function($ctx1) {$ctx1.fill(self,"nav",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "newTag:", fn: function (aString){ var self=this; function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($TagBrush())._fromString_canvas_(aString,self); return $1; }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},smalltalk.HTMLCanvas)})}, messageSends: ["fromString:canvas:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "noscript", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("noscript"); return $1; }, function($ctx1) {$ctx1.fill(self,"noscript",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "object", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("object"); return $1; }, function($ctx1) {$ctx1.fill(self,"object",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "ol", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("ol"); return $1; }, function($ctx1) {$ctx1.fill(self,"ol",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "ol:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._ol())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "ol"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "optgroup", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("optgroup"); return $1; }, function($ctx1) {$ctx1.fill(self,"optgroup",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "option", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("option"); return $1; }, function($ctx1) {$ctx1.fill(self,"option",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "output", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("output"); return $1; }, function($ctx1) {$ctx1.fill(self,"output",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "p", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("p"); return $1; }, function($ctx1) {$ctx1.fill(self,"p",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "p:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._p())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "p"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "param", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("param"); return $1; }, function($ctx1) {$ctx1.fill(self,"param",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "pre", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("pre"); return $1; }, function($ctx1) {$ctx1.fill(self,"pre",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "progress", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("progress"); return $1; }, function($ctx1) {$ctx1.fill(self,"progress",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "root", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@root"]; return $1; }, function($ctx1) {$ctx1.fill(self,"root",{},smalltalk.HTMLCanvas)})}, messageSends: []}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "root:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { self["@root"]=aTagBrush; return self}, function($ctx1) {$ctx1.fill(self,"root:",{aTagBrush:aTagBrush},smalltalk.HTMLCanvas)})}, messageSends: []}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "script", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("script"); return $1; }, function($ctx1) {$ctx1.fill(self,"script",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "section", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("section"); return $1; }, function($ctx1) {$ctx1.fill(self,"section",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "select", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("select"); return $1; }, function($ctx1) {$ctx1.fill(self,"select",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "small", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("small"); return $1; }, function($ctx1) {$ctx1.fill(self,"small",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "snippet:", fn: function (anElement){ var self=this; var clone,caret; function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)} return smalltalk.withContext(function($ctx1) { var $1,$2; clone=_st(_st(anElement)._asJQuery())._clone(); self._with_(_st($TagBrush())._fromJQuery_canvas_(clone,self)); caret=_st(clone)._find_("[data-snippet=\x22*\x22]"); $1=_st(_st(caret)._toArray())._isEmpty(); if(smalltalk.assert($1)){ caret=clone; caret; }; $2=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self); return $2; }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},smalltalk.HTMLCanvas)})}, messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "source", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("source"); return $1; }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "span", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("span"); return $1; }, function($ctx1) {$ctx1.fill(self,"span",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "span:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._span())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "span"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "strong", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("strong"); return $1; }, function($ctx1) {$ctx1.fill(self,"strong",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "strong:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._strong())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "strong"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "style", fn: function (){ var self=this; function $StyleTag(){return smalltalk.StyleTag||(typeof StyleTag=="undefined"?nil:StyleTag)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self["@root"])._addBrush_(_st($StyleTag())._canvas_(self)); return $1; }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.HTMLCanvas)})}, messageSends: ["addBrush:", "canvas:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "style:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=self._style(); _st($2)._with_(aString); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "style", "yourself"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "sub", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("sub"); return $1; }, function($ctx1) {$ctx1.fill(self,"sub",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "summary", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("summary"); return $1; }, function($ctx1) {$ctx1.fill(self,"summary",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "sup", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("sup"); return $1; }, function($ctx1) {$ctx1.fill(self,"sup",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "table", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("table"); return $1; }, function($ctx1) {$ctx1.fill(self,"table",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "tag:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self["@root"])._addBrush_(self._newTag_(aString)); return $1; }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},smalltalk.HTMLCanvas)})}, messageSends: ["addBrush:", "newTag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "tbody", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("tbody"); return $1; }, function($ctx1) {$ctx1.fill(self,"tbody",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "td", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("td"); return $1; }, function($ctx1) {$ctx1.fill(self,"td",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "textarea", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("textarea"); return $1; }, function($ctx1) {$ctx1.fill(self,"textarea",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "tfoot", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("tfoot"); return $1; }, function($ctx1) {$ctx1.fill(self,"tfoot",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "th", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("th"); return $1; }, function($ctx1) {$ctx1.fill(self,"th",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "thead", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("thead"); return $1; }, function($ctx1) {$ctx1.fill(self,"thead",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "time", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("time"); return $1; }, function($ctx1) {$ctx1.fill(self,"time",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "title", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("title"); return $1; }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "tr", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("tr"); return $1; }, function($ctx1) {$ctx1.fill(self,"tr",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "ul", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("ul"); return $1; }, function($ctx1) {$ctx1.fill(self,"ul",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "ul:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._ul())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "ul"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "video", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self._tag_("video"); return $1; }, function($ctx1) {$ctx1.fill(self,"video",{},smalltalk.HTMLCanvas)})}, messageSends: ["tag:"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "with:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._root())._with_(anObject); return $1; }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.HTMLCanvas)})}, messageSends: ["with:", "root"]}), smalltalk.HTMLCanvas); smalltalk.addMethod( smalltalk.method({ selector: "browserVersion", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(jQuery)._at_("browser"))._version(); return $1; }, function($ctx1) {$ctx1.fill(self,"browserVersion",{},smalltalk.HTMLCanvas.klass)})}, messageSends: ["version", "at:"]}), smalltalk.HTMLCanvas.klass); smalltalk.addMethod( smalltalk.method({ selector: "isMSIE", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(jQuery)._at_("browser"))._at_("msie"))._notNil(); return $1; }, function($ctx1) {$ctx1.fill(self,"isMSIE",{},smalltalk.HTMLCanvas.klass)})}, messageSends: ["notNil", "at:"]}), smalltalk.HTMLCanvas.klass); smalltalk.addMethod( smalltalk.method({ selector: "isMozilla", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(jQuery)._at_("browser"))._at_("mozilla"))._notNil(); return $1; }, function($ctx1) {$ctx1.fill(self,"isMozilla",{},smalltalk.HTMLCanvas.klass)})}, messageSends: ["notNil", "at:"]}), smalltalk.HTMLCanvas.klass); smalltalk.addMethod( smalltalk.method({ selector: "isOpera", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(jQuery)._at_("browser"))._at_("opera"))._notNil(); return $1; }, function($ctx1) {$ctx1.fill(self,"isOpera",{},smalltalk.HTMLCanvas.klass)})}, messageSends: ["notNil", "at:"]}), smalltalk.HTMLCanvas.klass); smalltalk.addMethod( smalltalk.method({ selector: "isWebkit", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(jQuery)._at_("browser"))._at_("webkit"))._notNil(); return $1; }, function($ctx1) {$ctx1.fill(self,"isWebkit",{},smalltalk.HTMLCanvas.klass)})}, messageSends: ["notNil", "at:"]}), smalltalk.HTMLCanvas.klass); smalltalk.addMethod( smalltalk.method({ selector: "onJQuery:", fn: function (aJQuery){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=self._basicNew(); _st($2)._initializeFromJQuery_(aJQuery); _st($2)._initialize(); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas.klass)})}, messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"]}), smalltalk.HTMLCanvas.klass); smalltalk.addClass('HTMLSnippet', smalltalk.Object, ['snippets'], 'Canvas'); smalltalk.addMethod( smalltalk.method({ selector: "initializeFromJQuery:", fn: function (aJQuery){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){ return smalltalk.withContext(function($ctx2) { return self._installSnippetFromJQuery_(_st(each)._asJQuery()); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})}, messageSends: ["do:", "installSnippetFromJQuery:", "asJQuery", "snippetsFromJQuery:"]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "installSnippetFromJQuery:", fn: function (element){ var self=this; var name; return smalltalk.withContext(function($ctx1) { var $1,$2; name=_st(element)._attr_("data-snippet"); $1=_st(name).__eq("*"); if(! smalltalk.assert($1)){ $2=_st("^\x5c*"._asRegexp())._test_(name); if(smalltalk.assert($2)){ name=_st(name)._allButFirst(); name; _st(element)._attr_put_("data-snippet","*"); } else { _st(element)._removeAttr_("data-snippet"); }; self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0))); }; return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},smalltalk.HTMLSnippet)})}, messageSends: ["attr:", "ifFalse:", "ifTrue:ifFalse:", "allButFirst", "attr:put:", "removeAttr:", "test:", "asRegexp", "snippetAt:install:", "get:", "detach", "="]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "snippetAt:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self._snippets())._at_(aString); return $1; }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},smalltalk.HTMLSnippet)})}, messageSends: ["at:", "snippets"]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "snippetAt:compile:", fn: function (aString,anElement){ var self=this; function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)} function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)} return smalltalk.withContext(function($ctx1) { _st(_st($ClassBuilder())._new())._installMethod_forClass_category_(_st(_st((function(htmlReceiver){ return smalltalk.withContext(function($ctx2) { return _st(htmlReceiver)._snippet_(anElement); }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets"); return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})}, messageSends: ["installMethod:forClass:category:", "asCompiledMethod:", "currySelf", "snippet:", "new"]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "snippetAt:install:", fn: function (aString,anElement){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._snippets())._at_put_(aString,anElement); self._snippetAt_compile_(aString,anElement); return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})}, messageSends: ["at:put:", "snippets", "snippetAt:compile:"]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "snippets", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$1; $2=self["@snippets"]; if(($receiver = $2) == nil || $receiver == undefined){ self["@snippets"]=smalltalk.HashedCollection._from_([]); $1=self["@snippets"]; } else { $1=$2; }; return $1; }, function($ctx1) {$ctx1.fill(self,"snippets",{},smalltalk.HTMLSnippet)})}, messageSends: ["ifNil:"]}), smalltalk.HTMLSnippet); smalltalk.addMethod( smalltalk.method({ selector: "snippetsFromJQuery:", fn: function (aJQuery){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray(); return $1; }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})}, messageSends: ["toArray", "find:"]}), smalltalk.HTMLSnippet); smalltalk.HTMLSnippet.klass.iVarNames = ['current']; smalltalk.addMethod( smalltalk.method({ selector: "current", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@current"]; return $1; }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HTMLSnippet.klass)})}, messageSends: []}), smalltalk.HTMLSnippet.klass); smalltalk.addMethod( smalltalk.method({ selector: "ensureCurrent", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1,$2,$3; $1=self["@current"]; if(($receiver = $1) == nil || $receiver == undefined){ $2=smalltalk.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []); _st($2)._initializeFromJQuery_(_st(document)._asJQuery()); $3=_st($2)._yourself(); self["@current"]=$3; self["@current"]; } else { $1; }; return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},smalltalk.HTMLSnippet.klass)})}, messageSends: ["ifNil:", "initializeFromJQuery:", "asJQuery", "new", "yourself"]}), smalltalk.HTMLSnippet.klass); smalltalk.addMethod( smalltalk.method({ selector: "initialize", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; smalltalk.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []); $1=self._isDOMAvailable(); if(smalltalk.assert($1)){ self._ensureCurrent(); }; return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLSnippet.klass)})}, messageSends: ["initialize", "ifTrue:", "ensureCurrent", "isDOMAvailable"]}), smalltalk.HTMLSnippet.klass); smalltalk.addMethod( smalltalk.method({ selector: "isDOMAvailable", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return typeof document !== 'undefined' ; return self}, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},smalltalk.HTMLSnippet.klass)})}, messageSends: []}), smalltalk.HTMLSnippet.klass); smalltalk.addMethod( smalltalk.method({ selector: "new", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { self._shouldNotImplement(); return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HTMLSnippet.klass)})}, messageSends: ["shouldNotImplement"]}), smalltalk.HTMLSnippet.klass); smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas'); smalltalk.addMethod( smalltalk.method({ selector: "accesskey:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("accesskey",aString); return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "action:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("action",aString); return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "addBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; self._appendChild_(_st(aTagBrush)._element()); $1=aTagBrush; return $1; }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})}, messageSends: ["appendChild:", "element"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "align:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("align",aString); return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "alt:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("alt",aString); return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "append:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { _st(anObject)._appendToBrush_(self); return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},smalltalk.TagBrush)})}, messageSends: ["appendToBrush:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "appendBlock:", fn: function (aBlock){ var self=this; var root; return smalltalk.withContext(function($ctx1) { root=_st(self["@canvas"])._root(); _st(self["@canvas"])._root_(self); _st(aBlock)._value_(self["@canvas"]); _st(self["@canvas"])._root_(root); return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},smalltalk.TagBrush)})}, messageSends: ["root", "root:", "value:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "appendChild:", fn: function (anElement){ var self=this; return smalltalk.withContext(function($ctx1) { var element=self['@element']; if (null == element.canHaveChildren || element.canHaveChildren) { element.appendChild(anElement); } else { element.text = String(element.text) + anElement.innerHTML; } ; return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "appendString:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._appendChild_(self._createTextNodeFor_(aString)); return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["appendChild:", "createTextNodeFor:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "appendToBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._addBrush_(self); return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})}, messageSends: ["addBrush:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "asJQuery", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(window)._jQuery_(self._element()); return $1; }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.TagBrush)})}, messageSends: ["jQuery:", "element"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "at:put:", fn: function (aString,aValue){ var self=this; return smalltalk.withContext(function($ctx1) { self['@element'].setAttribute(aString, aValue); return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "class:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self['@element'].className = aString; return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "cols:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("cols",aString); return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "contenteditable:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("contenteditable",aString); return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "contents:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { var $1,$2; $1=self; _st($1)._empty(); $2=_st($1)._append_(anObject); return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},smalltalk.TagBrush)})}, messageSends: ["empty", "append:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "contextmenu:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("contextmenu",aString); return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "createElementFor:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { return document.createElement(String(aString)); return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "createTextNodeFor:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { return document.createTextNode(String(aString)); return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "draggable:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("draggable",aString); return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "element", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@element"]; return $1; }, function($ctx1) {$ctx1.fill(self,"element",{},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "empty", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._empty(); return self}, function($ctx1) {$ctx1.fill(self,"empty",{},smalltalk.TagBrush)})}, messageSends: ["empty", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "for:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("for",aString); return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "height:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("height",aString); return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "hidden", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("hidden","hidden"); return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "href:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("href",aString); return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "id:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("id",aString); return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "initializeFromJQuery:canvas:", fn: function (aJQuery,aCanvas){ var self=this; return smalltalk.withContext(function($ctx1) { self["@element"]=_st(aJQuery)._get_((0)); self["@canvas"]=aCanvas; return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush)})}, messageSends: ["get:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "initializeFromString:canvas:", fn: function (aString,aCanvas){ var self=this; return smalltalk.withContext(function($ctx1) { self["@element"]=self._createElementFor_(aString); self["@canvas"]=aCanvas; return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush)})}, messageSends: ["createElementFor:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "media:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("media",aString); return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "method:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("method",aString); return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "name:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("name",aString); return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onBlur:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("blur",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onChange:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("change",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onClick:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("click",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onDblClick:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("dblclick",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onFocus:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("focus",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onFocusIn:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("focusin",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onFocusOut:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("focusout",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onHover:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("hover",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onKeyDown:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("keydown",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onKeyPress:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("keypress",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onKeyUp:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("keyup",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseDown:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mousedown",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseEnter:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mouseenter",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseLeave:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mouseleave",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseMove:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mousemove",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseOut:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mouseout",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseOver:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mouseover",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onMouseUp:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("mouseup",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onSelect:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("select",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onSubmit:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("submit",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "onUnload:", fn: function (aBlock){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self._asJQuery())._bind_do_("unload",aBlock); return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},smalltalk.TagBrush)})}, messageSends: ["bind:do:", "asJQuery"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "placeholder:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("placeholder",aString); return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "rel:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("rel",aString); return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "removeAt:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self['@element'].removeAttribute(aString); return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},smalltalk.TagBrush)})}, messageSends: []}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "rows:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("rows",aString); return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "src:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("src",aString); return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "style:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("style",aString); return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "tabindex:", fn: function (aNumber){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("tabindex",aNumber); return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "target:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("target",aString); return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "title:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("title",aString); return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "type:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("type",aString); return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "valign:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("valign",aString); return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "value:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("value",aString); return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "width:", fn: function (aString){ var self=this; return smalltalk.withContext(function($ctx1) { self._at_put_("width",aString); return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},smalltalk.TagBrush)})}, messageSends: ["at:put:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "with:", fn: function (anObject){ var self=this; return smalltalk.withContext(function($ctx1) { self._append_(anObject); return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.TagBrush)})}, messageSends: ["append:"]}), smalltalk.TagBrush); smalltalk.addMethod( smalltalk.method({ selector: "fromJQuery:canvas:", fn: function (aJQuery,aCanvas){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=self._new(); _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush.klass)})}, messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"]}), smalltalk.TagBrush.klass); smalltalk.addMethod( smalltalk.method({ selector: "fromString:canvas:", fn: function (aString,aCanvas){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=self._new(); _st($2)._initializeFromString_canvas_(aString,aCanvas); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush.klass)})}, messageSends: ["initializeFromString:canvas:", "new", "yourself"]}), smalltalk.TagBrush.klass); smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas'); smalltalk.addMethod( smalltalk.method({ selector: "with:", fn: function (aString){ var self=this; function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($HTMLCanvas())._isMSIE(); if(smalltalk.assert($1)){ _st(_st(self._element())._styleSheet())._cssText_(aString); } else { smalltalk.StyleTag.superclass.fn.prototype._with_.apply(_st(self), [aString]); }; return self}, function($ctx1) {$ctx1.fill(self,"with:",{aString:aString},smalltalk.StyleTag)})}, messageSends: ["ifTrue:ifFalse:", "cssText:", "styleSheet", "element", "with:", "isMSIE"]}), smalltalk.StyleTag); smalltalk.addMethod( smalltalk.method({ selector: "canvas:", fn: function (aCanvas){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=self._new(); _st($2)._initializeFromString_canvas_("style",aCanvas); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"canvas:",{aCanvas:aCanvas},smalltalk.StyleTag.klass)})}, messageSends: ["initializeFromString:canvas:", "new", "yourself"]}), smalltalk.StyleTag.klass); smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas'); smalltalk.addMethod( smalltalk.method({ selector: "appendToBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { self._appendToJQuery_(_st(aTagBrush)._asJQuery()); return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Widget)})}, messageSends: ["appendToJQuery:", "asJQuery"]}), smalltalk.Widget); smalltalk.addMethod( smalltalk.method({ selector: "appendToJQuery:", fn: function (aJQuery){ var self=this; function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)} return smalltalk.withContext(function($ctx1) { self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery)); return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Widget)})}, messageSends: ["renderOn:", "onJQuery:"]}), smalltalk.Widget); smalltalk.addMethod( smalltalk.method({ selector: "renderOn:", fn: function (html){ var self=this; return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Widget)})}, messageSends: []}), smalltalk.Widget); smalltalk.addMethod( smalltalk.method({ selector: "heliosClass", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return "widget"; }, function($ctx1) {$ctx1.fill(self,"heliosClass",{},smalltalk.Widget.klass)})}, messageSends: []}), smalltalk.Widget.klass); smalltalk.addMethod( smalltalk.method({ selector: "appendToBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._append_(self._asString()); return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Object)})}, messageSends: ["append:", "asString"]}), smalltalk.Object); smalltalk.addMethod( smalltalk.method({ selector: "appendToJQuery:", fn: function (aJQuery){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aJQuery)._append_(self._asString()); return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Object)})}, messageSends: ["append:", "asString"]}), smalltalk.Object); smalltalk.addMethod( smalltalk.method({ selector: "appendToBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._appendBlock_(self); return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.BlockClosure)})}, messageSends: ["appendBlock:"]}), smalltalk.BlockClosure); smalltalk.addMethod( smalltalk.method({ selector: "appendToJQuery:", fn: function (aJQuery){ var self=this; function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)} return smalltalk.withContext(function($ctx1) { self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery)); return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.BlockClosure)})}, messageSends: ["value:", "onJQuery:"]}), smalltalk.BlockClosure); smalltalk.addMethod( smalltalk.method({ selector: "asSnippet", fn: function (){ var self=this; function $HTMLSnippet(){return smalltalk.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString()); return $1; }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},smalltalk.CharacterArray)})}, messageSends: ["snippetAt:", "asString", "current"]}), smalltalk.CharacterArray); smalltalk.addMethod( smalltalk.method({ selector: "appendToBrush:", fn: function (aTagBrush){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._appendString_(self); return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.String)})}, messageSends: ["appendString:"]}), smalltalk.String); smalltalk.addMethod( smalltalk.method({ selector: "appendToJQuery:", fn: function (aJQuery){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aJQuery)._append_(self); return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.String)})}, messageSends: ["append:"]}), smalltalk.String); smalltalk.addMethod( smalltalk.method({ selector: "asJQuery", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return jQuery(String(self)); return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.String)})}, messageSends: []}), smalltalk.String); smalltalk.addMethod( smalltalk.method({ selector: "asJQuery", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return jQuery(self['@jsObject']); return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.JSObjectProxy)})}, messageSends: []}), smalltalk.JSObjectProxy); });