Remove unused BridgeElement extensions.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user