Merge pull request #1042 from csrakowski/iScrollConstructor

iScroll constructor with HTMLElement
This commit is contained in:
Diullei Gomes committed 2013-09-12 10:00:23 -07:00
commit 5be6c17ab7
3 files changed
+9 -5

No files matched your search

+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 myScroll7 = new iScroll(document.getElementById('wrapper'));
var myScroll8 = 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;