mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:48:56 +02:00
Proper formatting (aka no spaces after anonymous funcs)
This commit is contained in:
parent
ba459eda9e
commit
5db7c7821e
1 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
||||||
/* global Script, Controller, Overlays, Quat, MyAvatar, Entities, print, Vec3, AddressManager, Render, Window, Toolbars,
|
/* global Script, Controller, Overlays, Quat, MyAvatar, Entities, print, Vec3, AddressManager, Render, Window, Toolbars,
|
||||||
Camera, HMD, location, Account, Xform*/
|
Camera, HMD, location, Account, Xform*/
|
||||||
|
|
||||||
(function () {
|
(function() {
|
||||||
Script.include("/~/system/libraries/Xform.js");
|
Script.include("/~/system/libraries/Xform.js");
|
||||||
var DEBUG = false;
|
var DEBUG = false;
|
||||||
var MIN_LOADING_PROGRESS = 3.6;
|
var MIN_LOADING_PROGRESS = 3.6;
|
||||||
|
@ -310,7 +310,7 @@
|
||||||
var url = Account.metaverseServerURL + '/api/v1/places/' + domain;
|
var url = Account.metaverseServerURL + '/api/v1/places/' + domain;
|
||||||
request({
|
request({
|
||||||
uri: url
|
uri: url
|
||||||
}, function (error, data) {
|
}, function(error, data) {
|
||||||
if (data.status === "success") {
|
if (data.status === "success") {
|
||||||
var domainInfo = data.data;
|
var domainInfo = data.data;
|
||||||
var domainDescriptionText = domainInfo.place.description;
|
var domainDescriptionText = domainInfo.place.description;
|
||||||
|
@ -534,15 +534,15 @@
|
||||||
Overlays.hoverLeaveOverlay.connect(onLeaveOverlay);
|
Overlays.hoverLeaveOverlay.connect(onLeaveOverlay);
|
||||||
|
|
||||||
location.hostChanged.connect(domainChanged);
|
location.hostChanged.connect(domainChanged);
|
||||||
location.lookupResultsFinished.connect(function () {
|
location.lookupResultsFinished.connect(function() {
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function() {
|
||||||
connectionToDomainFailed = !location.isConnected;
|
connectionToDomainFailed = !location.isConnected;
|
||||||
}, 1200);
|
}, 1200);
|
||||||
});
|
});
|
||||||
Window.redirectErrorStateChanged.connect(toggleInterstitialPage);
|
Window.redirectErrorStateChanged.connect(toggleInterstitialPage);
|
||||||
|
|
||||||
MyAvatar.sensorToWorldScaleChanged.connect(scaleInterstitialPage);
|
MyAvatar.sensorToWorldScaleChanged.connect(scaleInterstitialPage);
|
||||||
MyAvatar.sessionUUIDChanged.connect(function () {
|
MyAvatar.sessionUUIDChanged.connect(function() {
|
||||||
var avatarSessionUUID = MyAvatar.sessionUUID;
|
var avatarSessionUUID = MyAvatar.sessionUUID;
|
||||||
Overlays.editOverlay(loadingSphereID, { parentID: avatarSessionUUID });
|
Overlays.editOverlay(loadingSphereID, { parentID: avatarSessionUUID });
|
||||||
});
|
});
|
||||||
|
@ -552,7 +552,7 @@
|
||||||
tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
button = tablet.addButton(BUTTON_PROPERTIES);
|
button = tablet.addButton(BUTTON_PROPERTIES);
|
||||||
|
|
||||||
button.clicked.connect(function () {
|
button.clicked.connect(function() {
|
||||||
toggle = !toggle;
|
toggle = !toggle;
|
||||||
updateOverlays(toggle);
|
updateOverlays(toggle);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue