Skip to content

Nested objects as default

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 30 Apr 18:27
· 7 commits to master since this release

Nested objects as default should not be overwritten by children types:

var Parent = Construct.extend({
      defaults: {
         obj: {
            foo: "Bar"
         }
     }
},{});

var Child = Parent.extend({
      defaults: {
         obj: {
             foo: "Baz"
        }
     }
}, {});

Parent.defaults.obj.foo should not be changed to Baz

See #65