Skip to content

Commit

Permalink
fix(menu): pass platform to menu type
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 2, 2016
1 parent 4af5e03 commit 7f597a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/menu/menu-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class MenuController {
* @private
*/
static create(type: string, menuCmp: Menu, platform: Platform) {
return new menuTypes[type](menuCmp);
return new menuTypes[type](menuCmp, platform);
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class MenuType {
* The menu itself, which is under the content, does not move.
*/
class MenuRevealType extends MenuType {
constructor(menu: Menu) {
constructor(menu: Menu, platform: Platform) {
super();

let openedX = (menu.width() * (menu.side === 'right' ? -1 : 1)) + 'px';
Expand Down

0 comments on commit 7f597a0

Please sign in to comment.