From 0c9938daee65b052571cf546ca63299f46caa35f Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Fri, 23 Jun 2017 21:38:29 -0400 Subject: [PATCH] [flexslider] Update to target @types/jquery v3. --- types/flexslider/flexslider-tests.ts | 18 ++++++------------ types/flexslider/index.d.ts | 2 ++ types/flexslider/tsconfig.json | 5 ----- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/types/flexslider/flexslider-tests.ts b/types/flexslider/flexslider-tests.ts index 967a351604..8bf2d28db1 100644 --- a/types/flexslider/flexslider-tests.ts +++ b/types/flexslider/flexslider-tests.ts @@ -1,21 +1,17 @@ -import $ = require('jquery'); - -// Can also be used with $(document).ready() -$(window).load(function() { +$(window).ready(function() { $('.flexslider').flexslider({ animation: "slide" }); }); -// Can also be used with $(document).ready() -$(window).load(function() { +$(window).ready(function() { $('.flexslider').flexslider({ animation: "slide", controlNav: "thumbnails" }); }); -$(window).load(function() { +$(window).ready(function() { // The slider being synced must be initialized first $('#carousel').flexslider({ animation: "slide", @@ -36,7 +32,7 @@ $(window).load(function() { }); }); -$(window).load(function() { +$(window).ready(function() { $('.flexslider').flexslider({ animation: "slide", animationLoop: false, @@ -45,8 +41,7 @@ $(window).load(function() { }); }); -// Can also be used with $(document).ready() -$(window).load(function() { +$(window).ready(function() { $('.flexslider').flexslider({ animation: "slide", animationLoop: false, @@ -57,8 +52,7 @@ $(window).load(function() { }); }); -// Can also be used with $(document).ready() -$(window).load(function() { +$(window).ready(function() { // Vimeo API nonsense var player = document.getElementById('player_1'); diff --git a/types/flexslider/index.d.ts b/types/flexslider/index.d.ts index cf38995f94..d9110a26f5 100644 --- a/types/flexslider/index.d.ts +++ b/types/flexslider/index.d.ts @@ -4,6 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +/// + interface SliderObject { //Object: The slider element itself container: Object; //Object: The ul.slides within the slider slides: Object; //Object: The slides of the slider diff --git a/types/flexslider/tsconfig.json b/types/flexslider/tsconfig.json index a2425d596e..12c0cc9692 100644 --- a/types/flexslider/tsconfig.json +++ b/types/flexslider/tsconfig.json @@ -12,11 +12,6 @@ "typeRoots": [ "../" ], - "paths": { - "jquery": [ - "jquery/v2" - ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true