Permalink
Browse files

optimized access to static members

  • Loading branch information...
1 parent 94ca121 commit b91111a3fb653ab09bc96f7e1a77c476ddae54e0 tomek committed Oct 18, 2012
@@ -48,7 +48,7 @@ qx.Class.define("helenos.ui.TextField",
{
this.base(arguments);
- var cd = helenos.ui.TextField.classDefs[clazz];
+ var cd = this.self(arguments).classDefs[clazz];
if (cd != undefined) {
this.set(cd );
} else {
@@ -28,12 +28,12 @@ qx.Class.define('helenos.util.Rpc',
members : {
__getRemoteUri : function(serviceName) {
- if (helenos.util.Rpc.serverPath == undefined) {
+ if (this.self(arguments).serverPath == undefined) {
var pathIdx = window.location.href.indexOf('/gui/index.html');
- helenos.util.Rpc.serverPath = window.location.href.substr(0, pathIdx);
+ this.self(arguments).serverPath = window.location.href.substr(0, pathIdx);
}
- return helenos.util.Rpc.serverPath + serviceName;
+ return this.self(arguments).serverPath + serviceName;
},
/**
@@ -60,14 +60,6 @@ qx.Class.define('helenos.util.Rpc',
ret = this._callInternal(arguments, 0);
}
- /*if (ret.error) {
- alert('RPC CALL ERROR: ' +
- 'code: ' + ret.error.code +
- 'message: ' + ret.error.message
- );
- return null;
- }*/
-
return ret;
}
}

0 comments on commit b91111a

Please sign in to comment.