• 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
..
images Loading commit data...
scripts Loading commit data...
styles Loading commit data...
robots.txt Loading commit data...