• 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
..
test Loading commit data...
annotation.js Loading commit data...
deep-count.coffee Loading commit data...
dropdown-menu-btn.js Loading commit data...
excerpt-overflow-monitor.js Loading commit data...
excerpt.js Loading commit data...
form-input.coffee Loading commit data...
form-validate.coffee Loading commit data...
group-list.js Loading commit data...
h-autofocus.js Loading commit data...
loggedout-message.js Loading commit data...
login-form.js Loading commit data...
markdown.js Loading commit data...
publish-annotation-btn.js Loading commit data...
search-status-bar.js Loading commit data...
share-dialog.coffee Loading commit data...
sidebar-tutorial.js Loading commit data...
signin-control.js Loading commit data...
simple-search.coffee Loading commit data...
sort-dropdown.js Loading commit data...
spinner.js Loading commit data...
status-button.coffee Loading commit data...
thread-filter.coffee Loading commit data...
thread.coffee Loading commit data...
top-bar.js Loading commit data...
window-scroll.js Loading commit data...