kaguranana-birthday-project/node_modules/granim/lib/onResize.js
2021-12-12 18:49:32 -08:00

11 lines
253 B
JavaScript

'use strict';
module.exports = function(type) {
if (type === 'removeListeners') {
window.removeEventListener('resize', this.setSizeAttributesNameSpace);
return;
}
window.addEventListener('resize', this.setSizeAttributesNameSpace);
};