wpbasti/jasy — Issue #12: Optimization does not remove full unused var declaration
Author: Zenwolf
Created: 2012-02-28 00:23:06+00:00
State: open

Using Optimization does not remove a full var declaration assigned to an Object literal.

Source Example:

```javascript
__render: function () {

var dimensions = {
width: 100,
height: 100
};

// other code removed
```

},

Optimization result:

```javascript
__render:function(){{width:100,height:100}};
```

Js error:
`Uncaught SyntaxError: Unexpected Token :`

jasyscript.py code
```python
optimization = Optimization("variables", "declarations", "blocks")
formatting = Formatting()
```