Support .ios.js examples

This commit is contained in:
Christopher Chedeau
2015-03-31 14:05:15 -07:00
parent 1e2d57122e
commit 427d902e48

View File

@@ -28,7 +28,10 @@ function getNameFromPath(filepath) {
function getExample(componentName) {
var path = '../Examples/UIExplorer/' + componentName + 'Example.js';
if (!fs.existsSync(path)) {
return;
path = '../Examples/UIExplorer/' + componentName + 'Example.ios.js';
if (!fs.existsSync(path)) {
return;
}
}
return {
path: path.replace(/^\.\.\//, ''),