in Ox.DocPanel, allow for passing a string as self.options.files
This commit is contained in:
parent
874d316fb2
commit
95de001d8b
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ Ox.DocPanel = function(options, self) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (self.options.files) {
|
if (self.options.files) {
|
||||||
|
self.options.files = Ox.makeArray(self.options.files);
|
||||||
self.options.items = Ox.doc(self.options.files.map(function(file) {
|
self.options.items = Ox.doc(self.options.files.map(function(file) {
|
||||||
return self.options.path + file;
|
return self.options.path + file;
|
||||||
}), function(docItems) {
|
}), function(docItems) {
|
||||||
|
|
Loading…
Reference in a new issue