diff --git a/_posts/tests/2011-03-27-destroy01.html b/_posts/tests/2011-03-27-destroy01.html index 94f31de..12c22a6 100644 --- a/_posts/tests/2011-03-27-destroy01.html +++ b/_posts/tests/2011-03-27-destroy01.html @@ -12,7 +12,12 @@ category: tests
-

After destroy-ing Isotope, original CSS gets re-applied

+

Click init button the destroy. Original CSS, pre-init, should be re-applied, all items back to visibility.

+
+ +
+ +
@@ -28,9 +33,15 @@ category: tests var $container = $('#container'); - $container.isotope({ - itemSelector: '.element', - filter: '.metal' + $('#init').click(function(){ + $container.isotope({ + itemSelector: '.element', + filter: '.metal' + }); + }); + + $('#destroy').click(function(){ + $container.isotope('destroy'); }); }); diff --git a/_posts/tests/2011-03-27-no-items01.html b/_posts/tests/2011-03-27-no-items01.html index 50c73f1..14cf5d8 100644 --- a/_posts/tests/2011-03-27-no-items01.html +++ b/_posts/tests/2011-03-27-no-items01.html @@ -5,7 +5,7 @@ category: tests ---
-

What happens when there are no items for Isotope/

+

What happens when there are no items for Isotope? If no items match `itemSelector`, container collapses. Plugin still return this.

@@ -23,7 +23,7 @@ category: tests $container.isotope({ itemSelector: '.foo' - }); + }).css('border', '10px solid'); }); \ No newline at end of file diff --git a/_posts/tests/2011-04-26-item-position-data01.html b/_posts/tests/2011-04-26-item-position-data01.html index d9a6a3a..25b2bd7 100644 --- a/_posts/tests/2011-04-26-item-position-data01.html +++ b/_posts/tests/2011-04-26-item-position-data01.html @@ -5,30 +5,11 @@ category: tests ---
-

+

itemPositionDataEnabled option is enabled.

-

Filters

- - - {% include sort-buttons.html %}

Etc

@@ -39,7 +20,7 @@ category: tests
-
+
{% for element in site.elements limit:40 %} {% include element-partial.html %} {% endfor %} @@ -48,16 +29,25 @@ category: tests