SayNoRules.js 377 B

12345678910111213141516171819
  1. import inherits from 'inherits';
  2. import RuleProvider from 'lib/features/rules/RuleProvider';
  3. export default function SayNoRules(eventBus) {
  4. RuleProvider.call(this, eventBus);
  5. }
  6. SayNoRules.$inject = [ 'eventBus' ];
  7. inherits(SayNoRules, RuleProvider);
  8. SayNoRules.prototype.init = function() {
  9. this.addRule('shape.resize', function(context) {
  10. return false;
  11. });
  12. };