diff --git a/api_overrides.go b/api_overrides.go index 1c3f250..4613d48 100644 --- a/api_overrides.go +++ b/api_overrides.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/autogcd.go b/autogcd.go index 11952b3..01517d6 100644 --- a/autogcd.go +++ b/autogcd.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/conditionals.go b/conditionals.go index 8863daf..23b8c4e 100644 --- a/conditionals.go +++ b/conditionals.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -86,6 +86,7 @@ func ElementAttributeEquals(tab *Tab, element *Element, name, value string) Cond } } +// Returns true when a selector returns a valid list of elements. func ElementsBySelectorNotEmpty(tab *Tab, elementSelector string) ConditionalFunc { return func(tab *Tab) bool { eles, err := tab.GetElementsBySelector(elementSelector) diff --git a/element.go b/element.go index 1b4de4e..c075f75 100644 --- a/element.go +++ b/element.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -58,7 +58,7 @@ func (e *ElementHasNoChildrenErr) Error() string { return "this element has no child elements" } -// for when we have an element that has not been populated +// When we have an element that has not been populated // with data yet. type ElementNotReadyErr struct { } @@ -67,7 +67,7 @@ func (e *ElementNotReadyErr) Error() string { return "this element is not ready" } -// for when the dimensions of an element are incorrect to calculate the centroid +// When the dimensions of an element are incorrect to calculate the centroid type InvalidDimensionsErr struct { Message string } @@ -498,7 +498,7 @@ func (e *Element) GetAttribute(name string) string { return attr[name] } -// Similar to above but works for boolean properties (checked, async etc) +// Similar to above, but works for boolean properties (checked, async etc) // Returns true if the attribute is set in our known list of attributes // for this element. func (e *Element) HasAttribute(name string) bool { diff --git a/settings.go b/settings.go index cda53b1..ad3dc67 100644 --- a/settings.go +++ b/settings.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/tab_subscribers.go b/tab_subscribers.go index dc38464..6b5be35 100644 --- a/tab_subscribers.go +++ b/tab_subscribers.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/types.go b/types.go index 2511ff2..2787894 100644 --- a/types.go +++ b/types.go @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2015 isaac dawson +Copyright (c) 2016 isaac dawson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal