Browse Source

Add `removeProperty` in StyleManager. Closes #587

pull/652/head
Artur Arseniev 9 years ago
parent
commit
4ba8847542
  1. 14
      src/style_manager/index.js

14
src/style_manager/index.js

@ -220,6 +220,20 @@ module.exports = () => {
},
/**
* Remove a property from the sector
* @param {string} sectorId Sector id
* @param {string} name CSS property name, eg. 'min-height'
* @return {Property} Removed property
* @example
* const property = styleManager.removeProperty('mySector', 'min-height');
*/
removeProperty(sectorId, name) {
const props = this.getProperties(sectorId);
return props && props.remove(this.getProperty(sectorId, name));
},
/**
* Get properties of the sector
* @param {string} sectorId Sector id

Loading…
Cancel
Save