triggerEvent = function(elem, name, detail, noBubbles, noCancelable){
		var event = document.createEvent('Event');

		if(!detail){
			detail = {};
		}

		detail.instance = lazysizes;

		event.initEvent(name, !noBubbles, !noCancelable);

		event.detail = detail;

		elem.dispatchEvent(event);
		return event;
	}
@param elem { Element }
@param name { string }
@param detail { any }
@param noBubbles { boolean }
@param noCancelable { boolean }
@returns { CustomEvent }