0.5.2 2024-07-31
- Fix issue with incorrectly auto-setting content-type as 'application/json' when payload is null (#122)
0.5.1 2024-01-08
- Added
# backtick_javascript: true
where needed to satisfy new Opal requirement (#121)
0.5.0 2024-01-05
- Added
Event#location
(#114) - Add
Event#touch_count
; access each point via an optionalindex
onEvent#touch_x
/Event#touch_y
(#117) - Add setting to prevent payload automatic processing (#103) breaking
- Remove untaint method for Ruby 3.2 compatibility (#119) breaking
0.4.6 2021-10-11
-
Initialize @@__isReady (#115)
-
Added
Element#select
(#111)
0.4.5 2021-07-28
-
Expose
Element#replace_all
andElement#replace_with
(#110) -
Open the opal dependency to any 1.x
0.4.4 2019-07-01
-
Use
::Native::Wrapper
where available -
Allow Opal 1.0 in gemspec
0.4.3 2018-09-07
-
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.""
and0
). breaking -
Call
Element#prop
viaNative.call
to get the right semantics aroundnil
vs.undefined
breaking -
Expose
Element#click
-
Fix semantics of
Element#attr
to better reflect jQuery's breaking -
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 breaking -
Don't wrap events with
Event.new
if no args are provided or the event is not a native object to increase performance inElement#on
andElement#one
-
Rename the internal property holding the callback wrapper in
Element#on
andElement#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
andElement#width
to perform the||
at ruby level to avoid overwriting values that are falsy in JavaScript withnil
breaking -
Add
Element#==
as an alias to jQuery's.is()
-
Add
Element#method_missing
andElement#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 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 forDocument.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 toElement#[]
andElement#[]=
-
Element#[]
now returnsnil
only for attributes that are missing, better following jQuery behaviour (which is to returnundefined
on such attributes).Element#has_attribute?
has been updated accordingly. -
Add
Element#prepend
method.
-
Move all files under
opal/jquery
require namespace, rather than currentopal-jquery
require paths. -
Add
Browser::Window
class, and make::Window
an instance of it. -
Make
Document
includeBrowser::DocumentMethods
which is a simple module to define custom methods forDocument
. -
Cleanup HTTP implementation.
-
Element#[]
andElement#attr
now returnnil
for empty attributes, instead of returning an empty string. -
Add
HTTP.setup
andHTTP.setup=
to access$.ajaxSetup
-
Add PATCH and HEAD support to
HTTP
-
Let
Element
accept previously definedJQUERY_CLASS
andJQUERY_SELECTOR
for environments such as node-webkit where$
can't be found in the global object. -
Add Promise support to
HTTP
get/post/put/delete methods. Also removeHTTP#callback
and#errback
methods.
-
Add
Document.body
andDocument.head
shortcut to element instances. -
Add
Event
methods:prevented?
,prevent
,stopped?
andstop
to replace longer javascript names. -
Add
LocalStorage
implementation. -
Fix
Element#data()
to returnnil
for an undefined data attribute instead of null. -
Expose
#detach
method onElement
.
-
Support setting html content through
Element#html()
. -
Add
Element
methods:#get
,#attr
and#prop
by aliasing them to jquery implementations.
- Require
native
from stdlib forHTTP
to use.
-
Add
Window
and$window
alias. -
Support
Zepto
as well asjQuery
. -
Event
is now a wrapper around native event from dom listeners.
-
Revert earlier commit, and use
$document
as reference to jquery wrappeddocument
. -
Introduce Element.document as wrapped document element
-
Depreceate $document.title and $document.title=.
-
Depreceate Document in favor of $document global.
-
Add HTTP.delete() for creating DELETE request.
-
Add Element#method_missing which forwards missing calls to try and call method as a native jquery function/plugin.
-
Depreceate Document finder methods (Document.find, Document[]). The finder methods on Element now replace them. Updated specs to suit.