Skip to content

Commit 478b9e9

Browse files
committed
Use Native::Wrapper where possible
Use of bare Native is deprecated.
1 parent a00b554 commit 478b9e9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
## [0.5.0](https://github.com/opal/opal-jquery/compare/v0.4.3...HEAD) Unreleased
1+
## [0.5.0](https://github.com/opal/opal-jquery/compare/v0.4.4...HEAD) Unreleased
22

33
*see diff*
44

5+
## [0.4.4](https://github.com/opal/opal-jquery/compare/v0.4.3...v0.4.4) 2019-07-01
6+
7+
* Use `::Native::Wrapper` where available
8+
59
## [0.4.3](https://github.com/opal/opal-jquery/compare/v0.4.2...v0.4.3) 2018-09-07
610

711
* Add `Element#==` as an alias of `.is()`

lib/opal/jquery/window.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module Browser
66
# Generally, you will want to use the top level {::Window} instance, which
77
# wraps `window` from the main page.
88
class Window
9-
include Native
9+
# In more recent Opal versions Native::Wrapper should be used
10+
include defined?(Native::Wrapper) ? Native::Wrapper : Native
1011

1112
# Returns this {Window} instance wrapped as an {Element}. Useful for
1213
# delegating jQuery events, which allows the use of `window` as target.

0 commit comments

Comments
 (0)