You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ernesto Reinaldo Barreiro (JIRA)" <ji...@apache.org> on 2013/01/17 09:36:22 UTC

[jira] [Commented] (WICKET-4983) extra recursion on Wicket.DOM.get

    [ https://issues.apache.org/jira/browse/WICKET-4983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13555982#comment-13555982 ] 

Ernesto Reinaldo Barreiro commented on WICKET-4983:
---------------------------------------------------

That's why the title was: extra recursion on Wicket.DOM.get.

Thanks for taking care of this!

Cheers,

Ernesto
 
                
> extra recursion on Wicket.DOM.get
> ---------------------------------
>
>                 Key: WICKET-4983
>                 URL: https://issues.apache.org/jira/browse/WICKET-4983
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.4.0
>            Reporter: Ernesto Reinaldo Barreiro
>            Assignee: Martin Grigorov
>            Priority: Trivial
>             Fix For: 6.5.0
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Any reason for DOM.get not being like
> get: function (arg) {
> 				if (isUndef(arg)) {
> 					return null;
> 				}
> 				if (arguments.length > 1) {
> 					var e = [];
> 					for (var i = 0; i < arguments.length; i++) {
> 						e.push(get(arguments[i]));
> 					}
> 					return e;
> 				} else if (typeof arg === 'string') {
> 					return document.getElementById(arg);
> 				} else {
> 					return arg;
> 				}
> instead of
>        
> get: function (arg) {
> 				if (isUndef(arg)) {
> 					return null;
> 				}
> 				if (arguments.length > 1) {
> 					var e = [];
> 					for (var i = 0; i < arguments.length; i++) {
> 						e.push(Wicket.$(arguments[i]));
> 					}
> 					return e;
> 				} else if (typeof arg === 'string') {
> 					return document.getElementById(arg);
> 				} else {
> 					return arg;
> 				}
> ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira