code: function() {
          for (var i=0, len=this.rules.length; i<len; i++) {
              this.rules[i].destroy();
              this.rules[i] = null;
          }
          this.rules = null;
          this.defaultStyle = null;
      }
docs: APIMethod: destroy
  nullify references to prevent circular references and memory leaks