You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2019/01/25 14:36:17 UTC
[myfaces-tobago] branch master updated: TOBAGO-1633: Use TypeScript
instead of JavaScript
This is an automated email from the ASF dual-hosted git repository.
hnoeth 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 5402fc1 TOBAGO-1633: Use TypeScript instead of JavaScript
5402fc1 is described below
commit 5402fc151de252e7eab7b897f42433d72a0e39df
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Jan 25 15:27:21 2019 +0100
TOBAGO-1633: Use TypeScript instead of JavaScript
* fix 'find' not found on non-jQuery elements
---
tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-utils.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-utils.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-utils.ts
index fbc4b54..5ee8636 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-utils.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-utils.ts
@@ -33,6 +33,7 @@ Tobago4.Utils.escapeClientId = function (id) {
* @param selector a jQuery selector.
*/
Tobago4.Utils.selectWithJQuery = function (elements, selector) {
+ elements = elements.jQuery ? elements : jQuery(elements); // fixme jQuery -> ES5
return elements == null
? jQuery(selector)
: elements.find(selector).add(elements.filter(selector));