2011-11-29 3 views
0

나는 오래된 프로토 타입 톤의 프로젝트를 상속 받았다. noconflict 모드에서 jquery를 사용하려고하는데 오류가 발생합니다 :jquery 프로토 타입 충돌

끝나지 않은 문자열 리터럴.

방화범이 기능 toArray을 프로토 타입 오류를 지적() {}

어떻게 든 JQuery와 또는 JQuery와 UI 내가 noconflict 모드에서 jQuery를 사용하고 있습니다 비록 프로토 타입와 충돌합니다.

아이디어가 있으십니까?

---- UPDATE - MY NOCONFLICT 코드 ----

<!-- the rest of these should will eventually be replaced with jquery and custom js in the agistix js dir --> 
    <script src="/fs/scripts/lib/jquery/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/[email protected]@" type="text/javascript" /> 

    <script src="/fs/scripts/lib/prototype/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/[email protected]@" type="text/javascript" /> 
    <script type="text/javascript" src="/fs/scripts/[email protected]@" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 

    <script>jQuery.noConflict();</script> 
    <script src="/fs/scripts/lib/jquery/[email protected]@" type="text/javascript" /> 
+1

noconflict 코드 – Kishore

+1

을 게시 할 수 있습니까? –

+0

noconflict 코드가 추가되었습니다. –

답변

0

나는 JQuery와, Mootools의 프로토 타입의 축소 된 버전으로 많은 문제를 경험했습니다. 이것이 일부 브라우저 업계의 최근 업데이트 전략과 관련이 있는지 확신 할 수 없지만 jquery의 압축되지 않은 버전을 사용해 보시기 바랍니다.