Skip to content

Commit e8480d6

Browse files
committed
ok, there are no issues what so ever at all throughout the entire set up. now fucking work
1 parent 2a42080 commit e8480d6

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "webpack --progress --colors --bail",
1616
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
1717
"deploy": "touch playground/.nojekyll && gh-pages -t -d playground -m \"Build for $(git log --pretty=format:%H -n1)\"",
18-
"docs": "exit0 || jsdoc -c .jsdoc.json",
18+
"docs": "jsdoc -c .jsdoc.json",
1919
"i18n:src": "mkdirp translations/core && format-message extract --out-file translations/core/en.json src/extensions/**/index.js",
2020
"i18n:push": "tx-push-src scratch-editor extensions translations/core/en.json",
2121
"lint": "exit 0 || eslint . && format-message lint src/**/*.js",

src/extensions/jg_audio/helper.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class AudioExtensionHelper {
276276
constructor(runtime) {
277277
/**
278278
* The runtime that the helper will use for all functions.
279-
* @type {runtime}
279+
* @param {runtime}
280280
*/
281281
this.runtime = runtime;
282282
this.audioGroups = {};
@@ -289,9 +289,9 @@ class AudioExtensionHelper {
289289

290290
/**
291291
* Creates a new AudioGroup.
292-
* @type {string} AudioGroup name
293-
* @type {object} AudioGroup settings (optional)
294-
* @type {object[]} AudioGroup sources (optional)
292+
* @param {string} AudioGroup name
293+
* @param {object} AudioGroup settings (optional)
294+
* @param {object[]} AudioGroup sources (optional)
295295
*/
296296
AddAudioGroup(name, data, sources) {
297297
if (data == null) data = {};
@@ -307,7 +307,7 @@ class AudioExtensionHelper {
307307
}
308308
/**
309309
* Deletes an AudioGroup by name.
310-
* @type {string}
310+
* @param {string}
311311
*/
312312
DeleteAudioGroup(name) {
313313
const audioGroup = this.audioGroups[name];
@@ -317,7 +317,7 @@ class AudioExtensionHelper {
317317
}
318318
/**
319319
* Gets an AudioGroup by name.
320-
* @type {string}
320+
* @param {string}
321321
*/
322322
GetAudioGroup(name) {
323323
return this.audioGroups[name];
@@ -330,7 +330,7 @@ class AudioExtensionHelper {
330330
}
331331
/**
332332
* Gets all AudioSources in an AudioGroup and updates them.
333-
* @type {AudioGroup}
333+
* @param {AudioGroup}
334334
*/
335335
UpdateAudioGroupSources(audioGroup) {
336336
const audioSources = this.GrabAllGrabAudioSources(audioGroup);
@@ -341,7 +341,7 @@ class AudioExtensionHelper {
341341
}
342342
/**
343343
* Gets all AudioSources in an AudioGroup and disposes them.
344-
* @type {AudioGroup}
344+
* @param {AudioGroup}
345345
*/
346346
DisposeAudioGroupSources(audioGroup) {
347347
const audioSources = this.GrabAllGrabAudioSources(audioGroup);
@@ -353,10 +353,10 @@ class AudioExtensionHelper {
353353

354354
/**
355355
* Creates a new AudioSource inside of an AudioGroup.
356-
* @type {AudioGroup} AudioSource parent
357-
* @type {string} AudioSource name
358-
* @type {string} AudioSource source (optional)
359-
* @type {object} AudioSource settings (optional)
356+
* @param {AudioGroup} AudioSource parent
357+
* @param {string} AudioSource name
358+
* @param {string} AudioSource source (optional)
359+
* @param {object} AudioSource settings (optional)
360360
*/
361361
AppendAudioSource(parent, name, src, settings) {
362362
const group = typeof parent == "string" ? this.GetAudioGroup(parent) : parent;
@@ -366,8 +366,8 @@ class AudioExtensionHelper {
366366
}
367367
/**
368368
* Deletes an AudioSource by name.
369-
* @type {AudioGroup} AudioSource parent
370-
* @type {string}
369+
* @param {AudioGroup} AudioSource parent
370+
* @param {string}
371371
*/
372372
RemoveAudioSource(parent, name) {
373373
const group = typeof parent == "string" ? this.GetAudioGroup(parent) : parent;
@@ -380,8 +380,8 @@ class AudioExtensionHelper {
380380
}
381381
/**
382382
* Gets an AudioSource by name.
383-
* @type {AudioGroup} AudioSource parent
384-
* @type {string}
383+
* @param {AudioGroup} AudioSource parent
384+
* @param {string}
385385
*/
386386
GrabAudioSource(audioGroup, name) {
387387
const group = typeof audioGroup == "string" ? this.GetAudioGroup(audioGroup) : audioGroup;
@@ -390,7 +390,7 @@ class AudioExtensionHelper {
390390
}
391391
/**
392392
* Gets all AudioSources and returns them in an array.
393-
* @type {AudioGroup} AudioSource parent
393+
* @param {AudioGroup} AudioSource parent
394394
*/
395395
GrabAllGrabAudioSources(audioGroup) {
396396
const group = typeof audioGroup == "string" ? this.GetAudioGroup(audioGroup) : audioGroup;
@@ -400,8 +400,8 @@ class AudioExtensionHelper {
400400

401401
/**
402402
* Finds a sound with the specified ID in the sound list.
403-
* @type {Array} soundList
404-
* @type {string} Sound ID
403+
* @param {Array} soundList
404+
* @param {string} Sound ID
405405
*/
406406
FindSoundBySoundId(soundList, id) {
407407
for (let i = 0; i < soundList.length; i++) {
@@ -411,9 +411,9 @@ class AudioExtensionHelper {
411411
return null;
412412
}
413413
/**
414-
* Finds a sound with the specified name in the sound list.
415-
* @type {Array} soundList
416-
* @type {string} Sound name
414+
* Finds a sound with the specified name in the sound list.
415+
* @param {Array} soundList
416+
* @param {string} Sound name
417417
*/
418418
FindSoundByName(soundList, name) {
419419
for (let i = 0; i < soundList.length; i++) {
@@ -424,7 +424,7 @@ class AudioExtensionHelper {
424424
}
425425
/**
426426
* Clamps numbers to stay inbetween 2 values.
427-
* @type {number}
427+
* @param {number}
428428
*/
429429
Clamp(number, min, max) {
430430
return Math.min(Math.max(number, min), max);

src/virtual-machine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ class VirtualMachine extends EventEmitter {
657657
}
658658

659659
/**
660-
* @type {Array<object>} Array of all assets currently in the runtime
660+
* Array of all assets currently in the runtime
661+
* @type {Array<object>}
661662
*/
662663
get assets () {
663664
const costumesAndSounds = this.runtime.targets.reduce((acc, target) => (

0 commit comments

Comments
 (0)