Skip to content

Commit 1490f3e

Browse files
committed
fix: some esm fixes
1 parent 0de1f6c commit 1490f3e

File tree

12 files changed

+9
-27
lines changed

12 files changed

+9
-27
lines changed

src/activityindicator/activityindicator.ios.ts

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export class ActivityIndicator extends ActivityIndicatorBase {
1515
nativeViewProtected: MDCActivityIndicator;
1616
autoSize = true;
1717

18-
get ios(): MDCActivityIndicator {
19-
return this.nativeViewProtected;
20-
}
2118
public createNativeView() {
2219
const view = MDCActivityIndicator.new();
2320
const color = (themer.getAppColorScheme() as MDCSemanticColorScheme).primaryColor;

src/appbar/appbar.ios.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export class AppBar extends AppBarBase {
3636
get nativeViewProtected() {
3737
return this._appBarController ? this._appBarController.navigationBar : null;
3838
}
39-
get ios() {
40-
return this.nativeViewProtected;
39+
set nativeViewProtected(view) {
40+
4141
}
4242

4343
public get _getActualSize(): { width: number; height: number } {

src/bottomsheet/bottomsheet.android.ts

-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
137137
bottomSheetOptions.dismissCallback();
138138
}
139139

140-
const owner = this.owner;
141140
if (owner && owner.isLoaded) {
142141
owner.callUnloaded();
143142
}

src/button/button.android.ts

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export class Button extends ButtonBase {
2020

2121
public isLoading: boolean;
2222

23-
get android(): com.google.android.material.button.MaterialButton {
24-
return this.nativeView;
25-
}
26-
2723
@profile
2824
public createNativeView() {
2925
let layoutId;

src/cardview/cardview.android.ts

-4
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ export class CardView extends CardViewBase {
227227
_strokeWidth = 0;
228228
_borderRadius = 0;
229229

230-
get android(): com.google.android.material.card.MaterialCardView {
231-
return this.nativeView;
232-
}
233-
234230
getDefaultElevation(): number {
235231
if (isPostLollipop()) {
236232
return 1; // 1dp @dimen/mtrl_card_elevation

src/core/core.common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function applyMixins(
1616
const descriptor = Object.getOwnPropertyDescriptor(baseCtor.prototype, name);
1717

1818
if (name === 'constructor') return;
19-
if (descriptor && (!descriptor.writable || !descriptor.configurable || !descriptor.enumerable || descriptor.get || descriptor.set)) {
19+
if (descriptor && (!descriptor.writable || !descriptor.configurable || descriptor.get || descriptor.set)) {
2020
Object.defineProperty(derivedCtor.prototype, name, descriptor);
2121
} else {
2222
const oldImpl = derivedCtor.prototype[name];

src/floatingactionbutton/floatingactionbutton.android.ts

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ let MDCFabButton: typeof com.google.android.material.floatingactionbutton.Floati
1010
export class FloatingActionButton extends FloatingActionButtonBase {
1111
nativeViewProtected: com.google.android.material.floatingactionbutton.FloatingActionButton;
1212

13-
get android(): com.google.android.material.floatingactionbutton.FloatingActionButton {
14-
return this.nativeViewProtected;
15-
}
1613
public createNativeView() {
1714
if (!MDCFabButton) {
1815
MDCFabButton = com.google.android.material.floatingactionbutton.FloatingActionButton;

src/tabs/tabs.ios.ts

-3
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ export class Tabs extends TabsBase {
511511
super.onUnloaded();
512512
}
513513

514-
get ios(): UIPageViewController {
515-
return this._ios;
516-
}
517514

518515
public layoutNativeView(left: number, top: number, right: number, bottom: number): void {
519516
//

src/textfield/textfield.android.ts

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export class TextField extends TextFieldBase {
5454
get nativeViewProtected() {
5555
return this.layoutView;
5656
}
57+
set nativeViewProtected(view) {
58+
this.layoutView = view;
59+
}
5760

5861
@profile
5962
public createNativeView() {

src/textfield/textfield.ios.ts

-3
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,6 @@ export class TextField extends TextFieldBase {
290290
// super.dismissSoftInput();
291291
// }
292292
// }
293-
get ios(): MDCTextField {
294-
return this.nativeViewProtected;
295-
}
296293

297294
blur() {
298295
this.dismissSoftInput();

src/textview/textview.android.ts

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export class TextView extends TextViewBase {
4747
get nativeViewProtected() {
4848
return this.layoutView;
4949
}
50+
set nativeViewProtected(view) {
51+
this.layoutView = view;
52+
}
5053

5154
public createNativeView() {
5255
let layoutId;

src/textview/textview.ios.ts

-3
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ export class TextView extends TextViewBase {
224224
// super.dismissSoftInput();
225225
// }
226226
// }
227-
get ios(): MDCMultilineTextField {
228-
return this.nativeViewProtected;
229-
}
230227

231228
blur() {
232229
this.dismissSoftInput();

0 commit comments

Comments
 (0)