From e51a8b3ed53f464d9f193fb0538738df0978e3b8 Mon Sep 17 00:00:00 2001 From: Joe Chrisman Date: Fri, 22 Feb 2019 10:43:51 -0800 Subject: [PATCH 1/2] added isotope method with no paramters (arrange) --- types/isotope-layout/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/isotope-layout/index.d.ts b/types/isotope-layout/index.d.ts index 5662da48f7..e10c0ea7c7 100644 --- a/types/isotope-layout/index.d.ts +++ b/types/isotope-layout/index.d.ts @@ -284,6 +284,10 @@ declare global { * Get the Isotope instance from a jQuery object. Isotope instances are useful to access Isotope properties. */ data(methodName: 'isotope'): Isotope; + /** + * Filters, sorts, and lays out items. + */ + isotope(): JQuery; /** * Lays out specified items. * @param elements Array of Isotope.Items From 63996d2cbd279d8d1c9ccaef966f628d7fe69e10 Mon Sep 17 00:00:00 2001 From: Joe Chrisman Date: Fri, 22 Feb 2019 10:49:24 -0800 Subject: [PATCH 2/2] added tests --- types/isotope-layout/isotope-layout-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/isotope-layout/isotope-layout-tests.ts b/types/isotope-layout/isotope-layout-tests.ts index d37475cefa..c39b8851db 100644 --- a/types/isotope-layout/isotope-layout-tests.ts +++ b/types/isotope-layout/isotope-layout-tests.ts @@ -81,6 +81,7 @@ $grid = $('.grid').isotope({ }); // test methods using jquery +$grid.isotope(); $grid.isotope('addItems', $('.items')); $grid.isotope('appended', $('.items')[0]); $grid.isotope('hideItemElements', [ new HTMLElement() ]);