Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Commit

Permalink
Adding event emitting for nested binding listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Oct 20, 2014
1 parent dbfa5b8 commit f10f46a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ angular.module('bgDirectives', [])
pane1.elem.css('width', pos + 'px');
pane2.elem.css('left', pos + 'px');
}

scope.$emit('splitterResized');
});

handler.bind('mousedown', function (ev) {
Expand Down

1 comment on commit f10f46a

@soichih
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just submitted this my pull request which will probably conflict with this pull request.

blackgate#20

I think scope.$broadcast makes more sense, because it's the children of the splitter that needs to handle the resizing - not the parents.. at least in my case.

Please sign in to comment.