1 jQuery.extend( jQuery.mobile,
3 loadStructure: function(widgetname) {
5 theScriptTag = $("script[data-framework-version][data-framework-root][data-framework-theme]"),
6 frameworkRootPath = theScriptTag.attr("data-framework-root") + "/" +
7 theScriptTag.attr("data-framework-version") + "/",
8 protoPath = frameworkRootPath + "proto-html" + "/" +
9 theScriptTag.attr("data-framework-theme");
12 url: protoPath + "/" + widgetname + ".prototype.html",
16 .success(function(data, textStatus, jqXHR) {
17 ret = $("<div>").html(data.replace(/\$\{FRAMEWORK_ROOT\}/g, frameworkRootPath));