Remove unused BridgeElement extensions.

This commit is contained in:
Denis Švara
2026-01-08 17:00:11 +01:00
parent 8f07ad650a
commit 33fa3a9c0f
@@ -1,17 +1,5 @@
import { BridgeElement } from "@hotwired/hotwire-native-bridge"
BridgeElement.prototype.isDisplayedOnPlatform = function() {
return !this.hasClass("hide-on-native")
}
BridgeElement.prototype.showOnPlatform = function() {
this.element.classList.remove("hide-on-native")
}
BridgeElement.prototype.hideOnPlatform = function() {
this.element.classList.add("hide-on-native")
}
BridgeElement.prototype.getButton = function() {
return {
title: this.title,
@@ -28,8 +16,3 @@ BridgeElement.prototype.getIcon = function() {
return null
}
BridgeElement.prototype.displaysNavButtonMenu = function() {
return this.bridgeAttribute("displays-nav-button-menu") === "true"
}