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.


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

def adopted
end

#attachedObject

This method is abstract.


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

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.



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

def attribute_changed(attr, from, to)
end

#custom?Boolean

Return true if the node is a custom element.

Returns:

  • (Boolean)


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

def custom?
  true
end

#detachedObject

This method is abstract.


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

def detached
end