added HTMLElement constructor

This commit is contained in:
Christiaan Rakowski
2013-09-12 16:57:57 +02:00
parent 03505d5d6f
commit aa3ddfd699
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ interface iScrollOptions {
declare class iScroll {
constructor (element: string);
constructor (element: string, options: iScrollOptions);
constructor (element: string, options?: iScrollOptions);
constructor (element: HTMLElement, options?: iScrollOptions);
destroy(): void;
refresh(): void;
+5 -1
View File
@@ -16,4 +16,8 @@ var myScroll4 = new iScroll('wrapper', {
});
var myScroll6 = new iScroll('wrapper', { scrollbarClass: 'myScrollbar' });
myScroll1.refresh();
myScroll1.refresh();
var myScroll6 = new iScroll(document.getElementById('wrapper'));
var myScroll7 = new iScroll(document.getElementById('wrapper'), { scrollbarClass: 'myScrollbar' });
+2 -2
View File
@@ -59,8 +59,8 @@ interface iScrollOptions {
declare class iScroll {
constructor (element: string);
constructor (element: string, options: iScrollOptions);
constructor (element: string, options?: iScrollOptions);
constructor (element: HTMLElement, options?: iScrollOptions);
destroy(): void;
refresh(): void;