Skip to content

Commit

Permalink
make sure macro replacements update angular
Browse files Browse the repository at this point in the history
add event firing
  • Loading branch information
Jeff Collins committed Aug 14, 2014
1 parent 9e7e55e commit bea42b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/mentio.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ angular.module('mentio', [])
var timer = $timeout(function() {
mentioUtil.replaceMacroText($scope.targetElement, $scope.targetElementPath,
$scope.targetElementSelectedOffset, $scope.macros, $scope.macros[macro]);
angular.element($scope.targetElement).triggerHandler('change');
}, 300);
$scope.$on('$destroy', function() {
$timeout.cancel(timer);
Expand Down
Loading

0 comments on commit bea42b1

Please sign in to comment.