Skip to content

Commit

Permalink
Merge pull request #69 from Zettersten/master
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCharbeneau authored Dec 1, 2021
2 parents d3405b6 + fbcd5d5 commit 70f82d2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions BlazorSize/scripts/BlazorSizeMediaModule.ts
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@ let instance = new BlazorSizeMedia();

// When MQL is created, it tracks a NET Ref
export function addMediaQueryList(dotnet: any) {
console.log(`addMediaQueryList dotnet:`);
console.log(dotnet);
instance.addMediaQueryList(dotnet);
}

@@ -16,15 +14,11 @@ export function removeMediaQueryList(dotnetMql: any) {

// When MediaQuery instance is created track media query in JavaScript
export function addMediaQueryToList(dotnetMql: any, mediaQuery: string) {
console.log(`addMediaQueryToList dotnet:`);
console.log(dotnetMql);
return instance.addMediaQueryToList(dotnetMql, mediaQuery);
}

// When MediaQuery instance is disposed remove media query in JavaScript
export function removeMediaQuery(dotnetMql: any, mediaQuery: string) {
console.log(`removeMediaQuery dotnet`);
console.log(dotnetMql);
instance.removeMediaQuery(dotnetMql, mediaQuery);
}

0 comments on commit 70f82d2

Please sign in to comment.