-
The .removeProp()
method removes properties set by the .prop()
method.
Additional Notes:
In Internet Explorer prior to version 9, using .prop()
to set a DOM element property to anything other than a simple primitive value (number, string, or boolean) can cause memory leaks if the property is not removed (using .removeProp()
) before the DOM element is removed from the document. To safely set values on DOM objects without memory leaks, use.data()
.
--> IE 9이전 버전에서는 메모리 누수가 발생할 수 있습니다. 메모리 누수없이 안전하게 변경할려면 .data()
를 사용해야합니다.
참조: http://api.jquery.com/removeProp/