myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch master updated: TOBAGO-1633: Use TypeScript instead of JavaScript
Date Wed, 06 Mar 2019 20:32:05 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


The following commit(s) were added to refs/heads/master by this push:
     new 7a8e9f6  TOBAGO-1633: Use TypeScript instead of JavaScript
7a8e9f6 is described below

commit 7a8e9f694253faefcfa6e66f511979b256f233ff
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Wed Mar 6 21:31:54 2019 +0100

    TOBAGO-1633: Use TypeScript instead of JavaScript
    
    * clean up listener calls not HTMLDocument
---
 tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-listener.ts | 2 +-
 tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-sheet.ts    | 2 +-
 tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-listener.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-listener.ts
index a9ef8db..9063605 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-listener.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-listener.ts
@@ -54,7 +54,7 @@ namespace Tobago {
       this.map.get(order).push(listener);
     }
 
-    execute(element?: HTMLElement | HTMLDocument) {
+    execute(element?: HTMLElement) {
 
       this.map.forEach((listeners: Array<(HTMLElement) => void>, order: Order) =>
{
         listeners.forEach(
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-sheet.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-sheet.ts
index c16a3cf..5562b48 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-sheet.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-sheet.ts
@@ -45,7 +45,7 @@ Tobago4.Sheet = function(
   console.timeEnd("[tobago-sheet] constructor");
 };
 
-Tobago4.Sheet.init = function(element:HTMLElement | HTMLDocument) {
+Tobago4.Sheet.init = function(element:HTMLElement) {
   console.time("[tobago-sheet] init");
   const sheets = element.querySelectorAll( ".tobago-sheet");
   sheets.forEach(function (element) {
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts
index dfad3d9..1fb0818 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts
@@ -66,7 +66,7 @@ Tobago4.Suggest.fromClient = function (data) {
   };
 };
 
-Tobago4.Suggest.init = function (element: HTMLElement | HTMLDocument) {
+Tobago4.Suggest.init = function (element: HTMLElement) {
 
   Tobago4.Utils.selectWithJQuery($(element), ".tobago-suggest").each(function () {
     var $suggest = jQuery(this);


Mime
View raw message