Web sitemde Quicksand komut dosyasını eklemeye çalışıyorum ama başarısız oldum. Bu komut dosyası için
Yakalanmayan TypeError: Tanımlanmamış '' yöntem '' yöntemi çağrlanılamıyor
: 65 Uncaught TypeError: Cannot call method 'split' of undefined
:
Kundakçı bana bu hata veriyor
jQuery.noConflict();
jQuery(document).ready(function($){
// Clone applications to get a second collection
var $data = $("#portfolio-items").clone();
//NOTE: Only filter on the main portfolio page, not on the subcategory pages
$('#portfolio-terms ul li').click(function(e) {
$("ul li").removeClass("active");
// Use the last category class as the category to filter by. This means that multiple categories are not supported (yet)
var filterClass=$(this).attr('class').split(' ').slice(-1)[0];
jquery.custom.js:65 Uncaught TypeError: Cannot call method 'split' of undefined (repeated 6 times)
if (filterClass == '.all current') {
var $filteredData = $data.find('#portfolio-');
} else {
var $filteredData = $data.find('#portfolio-[data-type=' + filterClass + ']');
}
$("#portfolio-items").quicksand($filteredData, {
duration: 800,
easing: 'swing',
});
$(this).addClass("active");
return false;
});
});
Buraya bakın: http://stakk.it/
hata nedir?
Teşekkür ederim ve benim kötü ingilizce için özür dilerim!
Neden filterClass muhtemelen eşit 'current' .ALL olacağını düşünecektir? – Neil