sproutcore/sproutcore20 — Issue #225: SC.Object#getPath doesn't work well with Capitals
Author: jamesarosen
Created: 2011-12-02 00:25:39+00:00
State: open

```javascript
window.Foo = { Bar: { Baz: "Foo's Baz" } };
window.Bar = { Baz: "window's Baz" };

SC.getPath("Foo.Bar.Baz");
// => "Foo's Baz" (correct)
Foo.getPath("Bar.Baz");
// => "window's Baz" (should be "Foo's Baz")
SC.Object.create().getPath("Bar.Baz");
// => "window's Baz" (should be undefined)
```

The problem with fixin this is that people would want to put `{{Foo.Bar.Baz}}` in a template, which would mean that all globals would have to be in the view's scope.