Module: Browser::DOM::Element::Custom::Mixin

Included in:
Browser::DOM::Element::Custom
Defined in:
opal/browser/dom/element/custom.rb

Instance Method Summary collapse

Instance Method Details

#adoptedObject

This method is abstract.


143
144
# File 'opal/browser/dom/element/custom.rb', line 143

def adopted
end

#attachedObject

This method is abstract.


135
136
# File 'opal/browser/dom/element/custom.rb', line 135

def attached
end

#attribute_changed(attr, from, to) ⇒ Object

This method is abstract.

Note: for this method to fire, you will need to define the observed attributes.



150
151
# File 'opal/browser/dom/element/custom.rb', line 150

def attribute_changed(attr, from, to)
end

#custom?Boolean

Return true if the node is a custom element.

Returns:

  • (Boolean)


154
155
156
# File 'opal/browser/dom/element/custom.rb', line 154

def custom?
  true
end

#detachedObject

This method is abstract.


139
140
# File 'opal/browser/dom/element/custom.rb', line 139

def detached
end