Statement declaration using variable?
<p>So I have this situation:</p>

<pre><code>jsvars['delete'] = "Delete";



$.modal({
        content: $("#delete").html(),
        title: jsvars['delete_category'],
        buttons: {
            jsvars['delete']: function(win) {
                // Do something
            },
            Cancel: function(win) { win.closeModal(); }
        }
    });
</code></pre>

<p>This prints an error, the code doesn't allow the <code>jsvars['delete']</code> to be there when declaring buttons. I tried eval and lots of tricks, but I just don't have any idea how to get that working. I tried googling also, but i am not sure of the terms how to search.</p>

<p>So how can I allow it to use variables there? I need to use the jsvars-array, because I keep translations there.</p>
