私のチャンスはこれでわずかですが、Google経由でいくつかの解決策を試しましたが、「Uncaught TypeError:Cannot call method'apply' of undefined'、anonymous function:」を修正するものは何もないようです。
他のJSがなくても単独で動作しますが、他のスクリプトと同じページで組み合わせるとエラーが発生します。
それが参照するコード行は次のとおりで、32行目が原因です。32行目はこの行です- if ( resizeTimeout ) { clearTimeout( resizeTimeout ); }
:
var $event = $.event, resizeTimeout;
$event.special.smartresize = {
setup: function() {
$(this).bind( "resize", $event.special.smartresize.handler );
},
teardown: function() {
$(this).unbind( "resize", $event.special.smartresize.handler );
},
handler: function( event, execAsap ) {
// Save the context
var context = this,
args = arguments;
// set correct event type
event.type = "smartresize";
if ( resizeTimeout ) { clearTimeout( resizeTimeout ); }
resizeTimeout = setTimeout(function() {
jQuery.event.handle.apply( context, args );
}, execAsap === "execAsap"? 0 : 100 );
}
};