You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (Commented) (JIRA)" <ji...@apache.org> on 2011/11/17 12:42:52 UTC
[jira] [Commented] (WICKET-4236) Use JQuery as a backing library
for Wicket's JavaScript code
[ https://issues.apache.org/jira/browse/WICKET-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152004#comment-13152004 ]
Peter Ertl commented on WICKET-4236:
------------------------------------
Ok, I asked Martin a few question and would to share his answers here:
Q: what the heck does
(function(undefined) { ... }()
do?
A: it's a neat trick to get a reference to 'undefined' which for sure _is_ undefined
---
Q: what does the string literal
'use strict';
in the first line of a function do?
A: it disables a few quirks in javascript and forces you to be a better programmer. see: http://stackoverflow.com/questions/1335851/what-does-use-strict-do-in-javascript-and-what-is-the-reasoning-behind-it
> Use JQuery as a backing library for Wicket's JavaScript code
> ------------------------------------------------------------
>
> Key: WICKET-4236
> URL: https://issues.apache.org/jira/browse/WICKET-4236
> Project: Wicket
> Issue Type: Improvement
> Components: wicket, wicket-extensions
> Affects Versions: 1.6.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 1.6.0
>
>
> wicket-ajax.js has accumulated a lot of custom written code to be able to serve the needs of Wicket Ajax behaviors and components.
> This custom javascript code can be greatly simplified by using any bigger JavaScript library that is specialized in handling browser differences.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira