[
http://jira.magnolia-cms.com/browse/MAGNOLIA-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26932#action_26932
]
Nickolaus Wing edited comment on MAGNOLIA-1182 at 3/8/10 9:46 PM:
------------------------------------------------------------------
IE seems to have a separate parsing step for picking up function declarations,
so wrapping a conditional around it doesn't do anything. However, you can just
change:
function $(element) { ... }
to
$ = function (element) { ... }
which is identical in functionality, while also forcing IE to respect the
evaluation of the condition.
(This change occurs at the top of m-m-admininterface/.../admin-js/generic.js)
was (Author: nwing):
IE seems to have a separate parsing step for picking up function
declarations, so wrapping a conditional around it doesn't do anything.
However, you can just change:
function $() { ... }
to
$ = function () { ... }
which is identical in functionality, while also forcing IE to respect the
evaluation of the condition.
(This change occurs at the top of m-m-admininterface/.../admin-js/generic.js)
> function $() name collision in javascript with prototype.js using IE
> --------------------------------------------------------------------
>
> Key: MAGNOLIA-1182
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-1182
> Project: Magnolia
> Issue Type: Bug
> Components: admininterface
> Affects Versions: 3.0 RC3
> Environment: Internet Explorer 6/7 (and probably lower versions),
> pages that use prototype.js
> Reporter: Andy McDowall
> Assignee: Philipp Bärfuss
> Priority: Minor
>
> The problem reported in issue 794
> (http://jira.magnolia.info/browse/MAGNOLIA-794) still occurs in internet
> explorer;
> the if(typeof != 'function') does not appear to prevent the re-definition of
> the $() function in IE.
> A temporary (and hacky) fix (for those affected by this) is to re-declare the
> $() function as specified in prototype.js after any <cms:mainBar/> tags.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------