Class: Browser::Event::Composition
- Inherits:
-
UI
show all
- Defined in:
- opal/browser/event/composition.rb
Defined Under Namespace
Classes: Definition
Instance Attribute Summary
#callback, #on
Class Method Summary
collapse
Instance Method Summary
collapse
aliases, #arguments, #arguments=, class_for, create, #initialize, #name, name_for, new, #off, #prevent, #prevented?, #stop, #stop!, #stopped?, #target
Constructor Details
This class inherits a constructor from Browser::Event
Class Method Details
.construct(name, desc) ⇒ Object
19
20
21
|
# File 'opal/browser/event/composition.rb', line 19
def self.construct(name, desc)
`new CompositionEvent(#{name}, #{desc})`
end
|
.supported? ⇒ Boolean
4
5
6
|
# File 'opal/browser/event/composition.rb', line 4
def self.supported?
Browser.supports? 'Event.Composition'
end
|
Instance Method Details
#end? ⇒ Boolean
45
46
47
|
# File 'opal/browser/event/composition.rb', line 45
def end?
name.downcase == 'compositionend'
end
|
#start? ⇒ Boolean
37
38
39
|
# File 'opal/browser/event/composition.rb', line 37
def start?
name.downcase == 'compositionstart'
end
|
#update? ⇒ Boolean
41
42
43
|
# File 'opal/browser/event/composition.rb', line 41
def update?
name.downcase == 'compositionupdate'
end
|