diff --git a/source/Ox.UI/js/Code/ExamplePage.js b/source/Ox.UI/js/Code/ExamplePage.js index 19b21169..63a11b51 100644 --- a/source/Ox.UI/js/Code/ExamplePage.js +++ b/source/Ox.UI/js/Code/ExamplePage.js @@ -14,6 +14,7 @@ Ox.ExamplePage = function(options, self) { .defaults({ html: '', js: '', + references: [], replaceCode: [], replaceComment: [], selected: 'source', @@ -113,9 +114,9 @@ Ox.ExamplePage = function(options, self) { }) .appendTo(self.$toolbar); - self.$keywordMenu = Ox.MenuButton({ - items: self.options.keywords.map(function(keyword) { - return {id: keyword, title: keyword}; + self.$referencesMenu = Ox.MenuButton({ + items: self.options.references.map(function(reference) { + return {id: reference, title: reference}; }), //title: 'Documentation', //width: 128 diff --git a/source/Ox.UI/js/Code/ExamplePanel.js b/source/Ox.UI/js/Code/ExamplePanel.js index 479f597e..28d25213 100644 --- a/source/Ox.UI/js/Code/ExamplePanel.js +++ b/source/Ox.UI/js/Code/ExamplePanel.js @@ -14,8 +14,8 @@ Ox.ExamplePanel = function(options, self) { .defaults({ element: '', examples: [], - keywords: null, path: '', + references: null, replaceCode: [], replaceComment: [], selected: '', @@ -83,16 +83,16 @@ Ox.ExamplePanel = function(options, self) { var items = []; self.options.examples.forEach(function(example) { var item = { - html: self.options.path + example + '/index.html', - id: example, - js: self.options.path + example + '/js/example.js' - }; + html: self.options.path + example + '/index.html', + id: example, + js: self.options.path + example + '/js/example.js' + }; Ox.get(item.html, function(html) { var title = html.match(/