jquery.initialize icon indicating copy to clipboard operation
jquery.initialize copied to clipboard

Uncaught TypeError: Cannot read property 'querySelectorAll' of null

Open adam-jones-net opened this issue 5 years ago • 1 comments

I'm getting the following error:

Uncaught TypeError: Cannot read property 'querySelectorAll' of null at MutationObserver.

My implementation is fairly standard I believe...

$(".cart-item-price .money").initialize( function(){
	if ($(this).html().indexOf('taxes') !== -1) {
		$(this).append('<span> + taxes</span>');
	}
});

adam-jones-net avatar Feb 19 '20 13:02 adam-jones-net

I'm getting the following error:

Uncaught TypeError: Cannot read property 'querySelectorAll' of null at MutationObserver.

My implementation is fairly standard I believe...

$(".cart-item-price .money").initialize( function(){
	if ($(this).html().indexOf('taxes') !== -1) {
		$(this).append('<span> + taxes</span>');
	}
});

$.initialize([selector], [callback]);

So, try $.initialize('.cart-item-price .money', function(){}); instead

eshimischi avatar Mar 28 '20 19:03 eshimischi

This issue appears inactive and a fix was suggested. If using $.initialize does not resolve your issue, please reopen.

bezborodow avatar Jan 30 '23 12:01 bezborodow