imgAreaSelect + changing aspectRatio on the fly
<p>I've been struggling with this problem for a while now. I couldn't find any answer/solution so far and I hope one of you can help me out.</p>

<p>Situation is like this: I'm using imgAreaSelect to crop an image. But the user has the possibility to change the aspect ratio. This by entering a width and a height (100:20 for example).</p>

<p>You can find my code below:</p>

<pre><code>var ias = jQuery('#photo').imgAreaSelect({instance:true});
ias.setOptions({aspectRatio:'100:20'});
ias.update();
</code></pre>

<p>So I have my instance of the imgAreaSelect in the var <code>ias</code>. But somehow I cannot change the settings through <code>SetOptions()</code>.
The error I am getting is the following:</p>

<p><code>Uncaught TypeError: Object # has no method 'getOwnPropertyNames'</code></p>

<p>But the strange this is, if I do <code>console.dir(ias)</code> I  perfectly see my object in the console. Everything else works as it should. Cropping works perfectly, I just cannot edit my options through <code>setOptions()</code>.</p>

<p>Am I forgetting something?</p>

<p>Thanks in advance! Steve</p>
