<commit_before>## Unreleased

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

*   Add `Element#method_missing` to allow not yet wrapped methods and plugins to be accessed with zero setup

## 0.4.2 2016-07-04

*   Allow Opal v0.10.0

## 0.4.1 2015-11-02

*   Updated specs to use jQuery 1.8 (that was initially released in 2012)

*   `Element.parse` now relies on `$.parseHTML` in conjunction with `$` enforcing actual HTML parsing.

*   Added `Document.ready` that returns a promise for `Document.ready?`

*   `Document.ready?` now works even after the document is loaded (unlike jQuery)

## 0.4.0 2015-07-17

*   `Element#[]=` now removes the attribute when the assigned value is nil.

*   `Element#attr` now better follows jQuery's behaviour by checking the number of arguments passed. Also it's now just a proxy to `Element#[]` and `Element#[]=`

*   `Element#[]` now returns `nil` only for attributes that are missing, better following jQuery behaviour (which is to return `undefined` on such attributes). `Element#has_attribute?` has been updated accordingly.

*   Add `Element#prepend` method.

## 0.3.0 2015-02-03

*   Move all files under `opal/jquery` require namespace, rather than
    current `opal-jquery` require paths.

*   Add `Browser::Window` class, and make `::Window` an instance of it.
<commit_msg>Update changelog<commit_after>## (0.5.0)[https://github.com/opal/opal-jquery/compare/v0.4.2...v0.5.0] 2018-07-24

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

*   Add `Element#method_missing` to allow not yet wrapped methods and plugins to be accessed with zero setup

*   Avoid `||` in JS-land because it would consider some values as falsy (e.g. `""` and `0`).

*   Call `Element#prop` via `Native.call` to get the right semantics around `nil` vs. `undefined`

*   Expose `Element#click`

*   Fix semantics of `Element#attr` to better reflect jQuery's

*   Skip sending a callback to `Element#animate` if no block is given

*   Let `Element#data` return a usable Ruby object (`Array`/`Hash`) instead of a native one

*   Don't wrap events with `Event.new` if no args are provided or the event is not a native object to increase performance in `Element#on` and `Element#one`

*   Rename the internal property holding the callback wrapper in `Element#on` and `Element#one` from `._jq_wrap` to `.$$jqwrap` to avoid polluting instance variables and following the custom of Opal's core classes

*   Fix `Element#value`, `Element#height` and `Element#width` to perform the `||` at ruby level to avoid overwriting values that are *falsy* in JavaScript with `nil`

*   Add `Element#==` as an alias to jQuery's `.is()`

*   Add `Element#method_missing` and `Element#respond_to_missing?` to forward calls to native plugins

*   Add `HTTP#inspect` with a basic summary

*   Updated specs to also use jQuery 3

*   Allow Opal v0.11.0

## (0.4.2)[https://github.com/opal/opal-jquery/compare/v0.4.1...v0.4.2] 2016-07-04

*   Allow Opal v0.10.0

## (0.4.1)[https://github.com/opal/opal-jquery/compare/v0.4.0...v0.4.1] 2015-11-02

*   Updated specs to use jQuery 1.8 (that was initially released in 2012)

*   `Element.parse` now relies on `$.parseHTML` in conjunction with `$` enforcing actual HTML parsing.

*   Added `Document.ready` that returns a promise for `Document.ready?`

*   `Document.ready?` now works even after the document is loaded (unlike jQuery)

## (0.4.0)[https://github.com/opal/opal-jquery/compare/v0.3.0...v0.4.0] 2015-07-17

*   `Element#[]=` now removes the attribute when the assigned value is nil.

*   `Element#attr` now better follows jQuery's behaviour by checking the number of arguments passed. Also it's now just a proxy to `Element#[]` and `Element#[]=`

*   `Element#[]` now returns `nil` only for attributes that are missing, better following jQuery behaviour (which is to return `undefined` on such attributes). `Element#has_attribute?` has been updated accordingly.

*   Add `Element#prepend` method.

## 0.3.0 2015-02-03

*   Move all files under `opal/jquery` require namespace, rather than
    current `opal-jquery` require paths.

*   Add `Browser::Window` class, and make `::Window` an instance of it.

{'fraction_non_alphanumeric': 0.12225705329153605, 'fraction_numerical': 0.035929587653725586, 'mean_word_length': 3.9263657957244655, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3455557', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1282, 'n_words': 505}