History

move remoteCallerID to Script.remoteCallerID

ZappoMan committed 9 years ago

Commit 44f8bf01 parent a7e21d71 file · +3 −3Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+3−3
@@ -2531,10 +2531,10 @@ void ScriptEngine::callEntityScriptMethod(const EntityItemID& entityID, const QS · 2530 unmodified lines
25312531 args << entityID.toScriptValue(this);
25322532 args << qScriptValueFromSequence(this, params);
25332533
2534− QScriptValue oldData = this->globalObject().property("remoteCallerID");
2535− this->globalObject().setProperty("remoteCallerID", remoteCallerID.toString()); // Make the remoteCallerID available to javascript as a global.
2534+ QScriptValue oldData = this->globalObject().property("Script").property("remoteCallerID");
2535+ this->globalObject().property("Script").setProperty("remoteCallerID", remoteCallerID.toString()); // Make the remoteCallerID available to javascript as a global.
25362536 callWithEnvironment(entityID, details.definingSandboxURL, entityScript.property(methodName), entityScript, args);
2537− this->globalObject().setProperty("remoteCallerID", oldData);
2537+ this->globalObject().property("Script").setProperty("remoteCallerID", oldData);
25382538 }
25392539 }
25402540 }