Why aren't options being overridden?
<p>In my module pattern, options are 'undefined' for some reason.. does anyone see why they aren't being passed in properly?</p>

<pre><code>Framework.MyModule = (function(options) {
    var defaults = {
        someOption : 1,
        stuff      : 2
    };
    if (!options) {
        var options = defaults;
    } else {
        for (var index in defaults) {
            if (typeof options[index] == 'undefined')
                options[index] = defaults[index];
        }
    }
    var module = {};

    // Initialize
    _something();

    // Private Methods
    function _something() {}

    // Public Methods
    module.click = function() {};

    return module;
})();


... docready function ...

var options = {
  someOption : 9,
  stuff      : 10
};

Framework.MyModule(options);

... end doc ready ...
</code></pre>

<p>Please see the fiddle: <a href="http://jsfiddle.net/kWHEZ/1/" rel="nofollow">http://jsfiddle.net/kWHEZ/1/</a></p>
