Merge pull request #7859 from julienpa/blazy

Make options optional for Blazy constructor
This commit is contained in:
Horiuchi_H
2016-01-29 17:34:42 +09:00
+13 -13
View File
@@ -14,31 +14,31 @@ interface Blazy {
interface BlazyOptions {
breakpoints: Breakpoint[];
breakpoints?: Breakpoint[];
container: string;
container?: string;
error: (ele: Element|HTMLElement, msg: string) => void;
error?: (ele: Element|HTMLElement, msg: string) => void;
errorClass: string;
errorClass?: string;
loadInvisible: boolean;
loadInvisible?: boolean;
offset: number;
offset?: number;
saveViewportOffsetDelay: number;
saveViewportOffsetDelay?: number;
selector: string;
selector?: string;
separator: string;
separator?: string;
src: string;
src?: string;
success: (ele: Element|HTMLElement) => void;
success?: (ele: Element|HTMLElement) => void;
successClass: string;
successClass?: string;
validateDelay: number;
validateDelay?: number;
}