Hi,
in all my components the logic is working correctly.
you can see an example here:
DesignStudioSdkPack/OSMap.js at master · KarolKalisz/DesignStudioSdkPack · GitHub
(function() {
/** code for recognition of script path */
var myScript = $("script:last")[0].src;
_readScriptPath = function () {
if(myScript) {
var myScriptSuffix = "res/map/";
var mainScriptPathIndex = myScript.indexOf(myScriptSuffix);
var ownScriptPath = myScript.substring(0, mainScriptPathIndex) + myScriptSuffix;
return ownScriptPath;
}
return "";
},
/** end of path recognition */
sap.designstudio.sdk.Component.subclass("org.kalisz.karol.scn.pack.OSMap", function() {
this.init = function() {
var that = this;
this._ownScript = _readScriptPath(); // here the script is read
this._oElements = {};
};
...
});
})();
the only one problem in thi sconstruct is, the breakpoints are always deleted in chrome... but the recognition is working correctly.