Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / jsbuilder / src / Parser / Statement / Deprecated.js
1 Loader.require('Parser.Statement.If');
2
3 Parser.Statement.Deprecated = Ext.extend(Parser.Statement.If, {
4     constructor: function() {
5         Parser.Statement.Deprecated.superclass.constructor.apply(this, arguments);
6
7         if (this.getProperty('since') === null) {
8             throw new Error("[Parser.Statement.Deprecated] 'since' property is required for deprecated statement");
9         }
10
11         this.setProperty('minVersion', '<=' + this.getProperty('since'));
12         this.removeProperty('since');
13     }
14 });