bind

지정된 값으로 this 키워드가 설정된 새 함수를 생성합니다.

function bind(function method,object thisArg);
methodfunction바인딩할 함수
thisArgobject바인딩된 함수가 호출될 때 this 컨텍스트로 사용될 값
function호출 시 지정된 this 값을 원래 함수에 사용하는 새 함수

Example

gantt.bind(method, thisArg);

Details

이 메서드는 Function.prototype.bind() 함수의 IE8 호환 대안으로 제공됩니다.

Change log

버전 4.0에 추가됨

Back to top