axyjo/leaflet-rails

Cannot read property 'trim' of undefined. at Object.trim (Util.js:124) at Object.splitWords

sergiy17 opened this issue · 1 comments

When searching for the Util.js:124 as is in error - I am finding the

trim: function (str) {
		return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
	}

method, with the undefined str.
End the trim method is defined here:


Did somebody have the same issue?

screenshot from 2017-11-27 22-47-28

Did somebody have the same issue?

axyjo commented

This method hasn't been changed from upstream. I'd recommend asking over at https://github.com/Leaflet/Leaflet