return this instead of addOne in disableScrollPropagation (#5595)

This commit is contained in:
Egon Steiner 2017-06-29 11:55:16 +02:00 committed by Iván Sánchez Ortega
parent 0688693d3b
commit d30f7aad35

View File

@ -179,7 +179,8 @@ export function stopPropagation(e) {
// @function disableScrollPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'mousewheel'` events (plus browser variants).
export function disableScrollPropagation(el) {
return addOne(el, 'mousewheel', stopPropagation);
addOne(el, 'mousewheel', stopPropagation);
return this;
}
// @function disableClickPropagation(el: HTMLElement): this