mootools/mootools-core — Issue #2133: Deprecate comment blocks and use has.js
Author: ibolmo
Created: 2011-11-23 21:48:07+00:00
State: open

If we use `has.js` we can deprecate comment blocks.

**From**

``` javascript

/*<1.2compat>*/
deadCode();
/**/

```
**To**

``` javascript
/*<1.2compat>*/
if (has('1.2compat')){
deadCode();
}
```

Benefits
-----------

1. *Testing against compatibility* (and other dead code branches) can (finally) be programmatic.
2. UglifyJS and other compilers that support dead code removal will take advantage.