Skip to content

Commit

Permalink
remove Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasrice committed Nov 13, 2020
1 parent 63bbcef commit 392c4df
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,4 @@ describe("FASTFoundation", () => {

xit("the styles resolved from $fastProvider when a local template property is not set", async () => {});
});

it("should resolve a null $fastProvider if no parent FASTProvider exists", async () => {
const { element, connect, disconnect } = await setup("bare-element");
await connect();

expect(element.$fastProvider).to.equal(null);
await disconnect();
});

xit("should resolve a provider element to $fastProvider after DOM connection if element has a parent FASTProvider", async () => {});
});
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
FASTElement,
observable,
} from "@microsoft/fast-element";
import { FASTProvider, Provider } from "../provider";
import { Configuration, ConfigurationInterface, unprefix } from "../configuration";

/**
Expand All @@ -16,12 +15,6 @@ import { Configuration, ConfigurationInterface, unprefix } from "../configuratio
export abstract class FoundationElement extends FASTElement {
@ConfigurationInterface
private configuration: Configuration;
/**
* The element's FASTProvider (if it exists)
*/
public get $fastProvider(): Provider | null {
return this._$fastProvider;
}

/**
* Sets the template of the element instance. When undefined,
Expand Down Expand Up @@ -66,17 +59,4 @@ export abstract class FoundationElement extends FASTElement {
unprefix(this.tagName).toLowerCase()
);
}

/**
* Private storage for $fastProvider.
*/
private _$fastProvider: Provider | null = null;

/**
* Invoked when element is connected to the DOM.
*/
public connectedCallback() {
this._$fastProvider = FASTProvider.resolveProviderFor(this);
super.connectedCallback();
}
}

This file was deleted.

This file was deleted.

107 changes: 0 additions & 107 deletions packages/web-components/fast-foundation/src/provider/provider.ts

This file was deleted.

0 comments on commit 392c4df

Please sign in to comment.