Use more concise syntax for array creation.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 22 Sep 2013 20:11:08 +0000 (22:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 22 Sep 2013 20:12:36 +0000 (22:12 +0200)
src/main/resources/static/javascript/sone.js

index 030f9be..3204507 100644 (file)
@@ -1365,7 +1365,7 @@ function getShownSoneId() {
  * @returns The ID of the currently shown Sones
  */
 function getShownSoneIds() {
-       var soneIds = new Array();
+       var soneIds = [];
        sone.find("#known-sones .sone .id").each(function() {
                soneIds.push($(this).text());
        });