Error: cannot call methods on sortable prior to initialization; attempted to call method 'option'

when i use the ui-route and come out with the "Error: cannot call methods on sortable prior to initialization; attempted to call method 'option'".so give a small change when the sortable page is not removed then dont do sortable('option')