Skip to content
Snippets Groups Projects
Commit 6f88f6d5 authored by Nick Poulden's avatar Nick Poulden
Browse files

Allow absolute example URLs to be specified

parent 01f14f81
No related branches found
No related tags found
No related merge requests found
......@@ -37,4 +37,4 @@ Ext.define('Docs.view.examples.Container', {
clear: function() {
this.update('');
}
});
\ No newline at end of file
});
......@@ -52,9 +52,10 @@ Ext.define('Docs.view.examples.TouchContainer', {
* @param {Object} example Example object
*/
load: function(example) {
var url = example.externalUrl || (this.exampleBaseUrl + example.url);
this.title = example.text + " Example";
this.device = Ext.create('Docs.view.examples.Device', {
url: this.exampleBaseUrl + example.url,
url: url,
device: example.device || "phone",
orientation: example.orientation || "landscape"
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment