1 Loader.require('Parser.Statement.If');
3 Parser.Statement.Deprecated = Ext.extend(Parser.Statement.If, {
4 constructor: function() {
5 Parser.Statement.Deprecated.superclass.constructor.apply(this, arguments);
7 if (this.getProperty('since') === null) {
8 throw new Error("[Parser.Statement.Deprecated] 'since' property is required for deprecated statement");
11 this.setProperty('minVersion', '<=' + this.getProperty('since'));
12 this.removeProperty('since');