Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(mdMenu): fix rc2 complete break
Browse files Browse the repository at this point in the history
closes #3197
  • Loading branch information
rschmukler committed Jun 11, 2015
1 parent 999e0da commit fb245fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menu/menu-interim-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function MenuProvider($$interimElementProvider) {
/** Wireup various resize listeners for screen changes */
function handleResizing() {
opts.resizeFn = function() {
positionMenu(scope, element, opts);
positionMenu(element, opts);
};
angular.element($window).on('resize', opts.resizeFn);
angular.element($window).on('orientationchange', opts.resizeFn);
Expand All @@ -103,7 +103,7 @@ function MenuProvider($$interimElementProvider) {
// so all of our computed positions/sizes are accurate
$$rAF(function() {
$$rAF(function() {
positionMenu(scope, element, opts);
positionMenu(element, opts);
// Wait a frame before fading in menu (md-active) so that we don't trigger
// transitions on the menu position changing
$$rAF(function() {
Expand Down

0 comments on commit fb245fb

Please sign in to comment.