more bugfixes for 1.4

This commit is contained in:
Adam Shaw
2009-11-22 16:21:13 -08:00
parent 9db94207cb
commit 0cf59ac85c
7 changed files with 132 additions and 128 deletions
+5 -1
View File
@@ -262,7 +262,11 @@ var viewMethods = {
// get a property from the 'options' object, using smart view naming
option: function(name, viewName) {
return viewOption(this.options, name, this.name || viewName);
var v = this.options[name];
if (typeof v == 'object') {
return smartProperty(v, viewName || this.name);
}
return v;
},