myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] 01/02: clean up
Date Thu, 08 Aug 2019 12:20:01 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit 00f1740c5c03ba9c5b9de1ac936bd37e33031d34
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Wed Aug 7 22:26:30 2019 +0200

    clean up
---
 .../tobago-theme-standard/src/main/npm/ts/tobago-core.ts   | 14 --------------
 .../tobago-theme-standard/src/main/npm/ts/tobago-file.ts   |  2 +-
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-core.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-core.ts
index 6feff42..7c9d6fa 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-core.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-core.ts
@@ -128,20 +128,6 @@ export class Tobago4 {
       }
     });
   };
-
-  static toString = function (element) {
-    var result = '';
-    for (var property in element) {
-      if (property && element[property]) {
-        var value = '' + element[property];
-        if (value !== '') {
-          result += '\r\n' + property + '=' + value;
-        }
-      }
-    }
-    return result;
-  };
-
 }
 
 document.addEventListener('DOMContentLoaded', function () {
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-file.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-file.ts
index d5ec0c4..8b57f39 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-file.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-file.ts
@@ -28,7 +28,7 @@ class File {
         let text: string;
         if (real.multiple) {
           const format: string = real.dataset["tobagoFileMultiFormat"];
-          text = format.replace("{}", real.files.length.toString());
+          text = format.replace("{}", String(real.files.length));
         } else {
           text = <string>real.value;
           // remove path, if any. Some old browsers set the path, others like webkit uses
the prefix "C:\path\".


Mime
View raw message