in Ox.DocPanel, allow for passing a string as self.options.files

This commit is contained in:
rolux 2012-05-30 19:24:45 +02:00
parent 874d316fb2
commit 95de001d8b

View file

@ -73,6 +73,7 @@ Ox.DocPanel = function(options, self) {
);
if (self.options.files) {
self.options.files = Ox.makeArray(self.options.files);
self.options.items = Ox.doc(self.options.files.map(function(file) {
return self.options.path + file;
}), function(docItems) {