최근에 jQuery가 릴리즈 되었다. 1.9의 마이너 버전 1.9.1까지 2월 4일에 릴리즈 된 것 같다. 미리 주시하지 못해 정확한 날짜에 확인하지 못했다. (ㅜㅜ) 아무튼 지금이라도 봐서 다행이다. 릴리즈 블로그 내용은 다음 링크에서 확인할 수 있다. 1.9에서 상당히 많은 부분이 변경되었기에 확인이 필요하다. 1.9는 1월 15일에 릴리즈 되었다. 앞으로 더 관심 가져야겠다.

 

1.9 Release

http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

 

1.9.1 Release

http://blog.jquery.com/2013/02/04/jquery-1-9-1-released/

 

1.9.1 버전의 script 포함 내용은 아래와 같이 하면 된다. 기존 파일명에서 버전명만 바꾸면 된다.

 

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>

<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>

 

 

google cdn이나 MS cdn 호스팅에도 추가된 것을 볼 수 있었다. (MS에서는 example에서는 확인 안되지만 파일에 버전 명을 바꾸면 사용은 가능하다.)

https://developers.google.com/speed/libraries/devguide#jquery

http://www.asp.net/ajaxlibrary/cdn.ashx#Using_jQuery_from_the_CDN_18

 

1.9에서 변경된 점 중에 눈에 띄는 점은

  • css에서 multi getter 지원
    var dims = $("#box").css([ "width", "height", "backgroundColor" ]);
    // { width: "10px", height: "20px", backgroundColor: "#D00DAD" }

 

  • CSS3의 지원이 추가
  • 그리고 충격적인 live, die 메소드가 삭제되었다는 점 이 눈에 띈다.
    자세한 리스트는 아래 목록을 참고하자.

 

 

http://jquery.com/upgrade-guide/1.9/

 

Changes of Note in jQuery 1.9

  • .toggle(function, function, ... ) removed
  • jQuery.browser() removed
  • .live() removed
  • .die() removed
  • jQuery.sub() removed
  • .add()
  • .addBack( selector ) replaces .andSelf()
  • .after(), .before(), and .replaceWith() with disconnected nodes
  • .appendTo, .insertBefore, .insertAfter, and .replaceAll
  • AJAX events should be attached to document
  • Checkbox/radio state in a .trigger()ed "click" event
  • Order of triggered "focus" events
  • jQuery(htmlString) versus jQuery(selectorString)
  • Events not fired by the .data() method; names with periods
  • Ordering of disconnected nodes within a jQuery set
  • Loading and running scripts inside HTML content
  • .attr() versus .prop()
  • $("input").attr("type", newValue) in oldIE
  • "hover" pseudo-event
  • .selector property on jQuery objects
  • jQuery.attr()
  • jQuery.ajax returning a JSON result of an empty string
  • jQuery.proxy() context
  • .data("events")
  • Removed properties of the Event object
  • Undocumented arguments of API methods
  • Other undocumented properties and methods

 

+ Recent posts