• Robert Knight's avatar
    Dispatch markdown editor input changes from $apply() block · b7e5a1d5
    Robert Knight authored
    The input event handler's callback was not invoked inside an $apply()
    block, so the $digest function was never called to propagate the changes
    in vm.setEditText() in annotation.js. This happened to work previously
    because ngModel's $setViewValue() was called to apply input changes,
    which internally uses $scope.$apply().
    
    This commit wraps the input events from the markdown editor with $apply
    but debounces them. Since $apply() triggers every single watcher in the
    application, running it on every keystroke causes noticeable lag
    otherwise.
    
    Fixes #3212
    b7e5a1d5
Name
Last commit
Last update
..
annotation-test.js Loading commit data...
excerpt-overflow-monitor-test.js Loading commit data...
excerpt-test.js Loading commit data...
form-input-test.coffee Loading commit data...
form-validate-test.coffee Loading commit data...
group-list-test.js Loading commit data...
markdown-test.js Loading commit data...
publish-annotation-btn-test.js Loading commit data...
search-status-bar-test.js Loading commit data...
share-dialog-test.coffee Loading commit data...
sidebar-tutorial-test.js Loading commit data...
simple-search-test.coffee Loading commit data...
sort-dropdown-test.js Loading commit data...
spinner-test.js Loading commit data...
status-button-test.coffee Loading commit data...
thread-test.coffee Loading commit data...
util.js Loading commit data...
window-scroll-test.js Loading commit data...