doc fixes

This commit is contained in:
Martin Angers
2012-08-31 10:47:28 -04:00
parent f1e54e5311
commit a139b5d77f
5 changed files with 103 additions and 41 deletions

View File

@@ -4,8 +4,9 @@ import (
"exp/html"
)
// Attr() gets the specified attribute's value for the first element in the Selection.
// To get the value for each element individually, use a looping construct such as Each() or Map() method.
// Attr() gets the specified attribute's value for the first element in the
// Selection. To get the value for each element individually, use a looping
// construct such as Each() or Map() method.
func (this *Selection) Attr(attrName string) (val string, exists bool) {
if len(this.Nodes) == 0 {
return