correction of "beforedrag" method name in example code