Class: Browser::Event::Close::Definition

Inherits:
Definition show all
Defined in:
opal/browser/event/close.rb

Instance Method Summary collapse

Methods inherited from Definition

#bubbles=, #cancelable=

Instance Method Details

#clean!(value) ⇒ Object


17
18
19
# File 'opal/browser/event/close.rb', line 17

def clean!(value)
  `#@native.wasClean = true`
end

#code=(value) ⇒ Object


9
10
11
# File 'opal/browser/event/close.rb', line 9

def code=(value)
  `#@native.code = #{value}`
end

#not_clean!(value) ⇒ Object


21
22
23
# File 'opal/browser/event/close.rb', line 21

def not_clean!(value)
  `#@native.wasClean = false`
end

#reason=(value) ⇒ Object


13
14
15
# File 'opal/browser/event/close.rb', line 13

def reason=(value)
  `#@native.reason = #{value}`
end