Merge pull request #2852 from pine613/feature/zepto/appendTo

Added appendTo overload
This commit is contained in:
Masahiro Wakame
2014-09-24 23:46:47 +09:00

5
zepto/zepto.d.ts vendored
View File

@@ -493,6 +493,11 @@ interface ZeptoCollection {
**/
appendTo(target: HTMLElement[]): ZeptoCollection;
/**
* @see ZeptoCollection.appendTo
**/
appendTo(target: ZeptoCollection): ZeptoCollection;
/**
* Read or set DOM attributes. When no value is given, reads specified attribute from the first element in the collection. When value is given, sets the attribute to that value on each element in the collection. When value is null, the attribute is removed (like with removeAttr). Multiple attributes can be set by passing an object with name-value pairs.
* To read DOM properties such as checked or selected, use prop.