UNPKG

io.appium.gappium.sampleapp

Version:

Sample Corodva application (Android + iOS) to illustrate test automation

25 lines (19 loc) 594 B
app.utils.templates = (function() { var load = function(views, callback) { var deferreds = []; $.each(views, function(index, view) { if (app.views[view]) { deferreds.push($.get('tpl/' + view + '.html', function(data) { app.views[view].prototype.template = _.template(data); }, 'html')); } else { alert(view + " not found"); } }); $.when.apply(null, deferreds).done(callback); } // The public API return { load: load }; }());