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


19
20
21
# File 'opal/browser/event/close.rb', line 19

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

#code=(value) ⇒ Object


11
12
13
# File 'opal/browser/event/close.rb', line 11

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

#not_clean!(value) ⇒ Object


23
24
25
# File 'opal/browser/event/close.rb', line 23

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

#reason=(value) ⇒ Object


15
16
17
# File 'opal/browser/event/close.rb', line 15

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