cleanups + optimizations
This commit is contained in:
		| @@ -103,22 +103,6 @@ | ||||
|     }); | ||||
|   }); | ||||
|  | ||||
|   var containerEl = document.querySelector('.shuffle-wrapper'); | ||||
| 	if (containerEl) { | ||||
| 		var Shuffle = window.Shuffle; | ||||
| 		var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), { | ||||
| 			itemSelector: '.shuffle-item', | ||||
| 			buffer: 1 | ||||
| 		}); | ||||
|  | ||||
| 		jQuery('input[name="shuffle-filter"]').on('change', function (evt) { | ||||
| 			var input = evt.currentTarget; | ||||
| 			if (input.checked) { | ||||
| 				myShuffle.filter(input.value); | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
|  | ||||
| })(jQuery); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user