示例#1
0
文件: ko.go 项目: theclapp/js
func (t *TemplateNodes) Item(idx int) *dom.Element {
	return dom.WrapElement(t.Index(idx))
}
示例#2
0
文件: canvas.go 项目: theclapp/js
// New creates a Canvas instance
// el is the html element
func New(el *js.Object) *Canvas {
	return &Canvas{dom.WrapElement(el)}
}