0.5.1 2024-01-08
- Added
# backtick_javascript: true
where needed to satisfy new Opal requirement (#xxx)
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 availableAllow 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 setupAvoid
||
in JS-land because it would consider some values as falsy (e.g.""
and0
). breakingCall
Element#prop
viaNative.call
to get the right semantics aroundnil
vs.undefined
breakingExpose
Element#click
Fix semantics of
Element#attr
to better reflect jQuery's breakingSkip sending a callback to
Element#animate
if no block is givenLet
Element#data
return a usable Ruby object (Array
/Hash
) instead of a native one breakingDon'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 classesFix
Element#value
,Element#height
andElement#width
to perform the||
at ruby level to avoid overwriting values that are falsy in JavaScript withnil
breakingAdd
Element#==
as an alias to jQuery's.is()
Add
Element#method_missing
andElement#respond_to_missing?
to forward calls to native pluginsAdd
HTTP#inspect
with a basic summaryUpdated 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.
0.3.0 2015-02-03
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.
0.2.0 2014-03-12
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
.
0.1.2 2013-12-01
Support setting html content through
Element#html()
.Add
Element
methods:#get
,#attr
and#prop
by aliasing them to jquery implementations.
0.1.1 2013-11-03
- Require
native
from stdlib forHTTP
to use.
0.1.0 2013-11-03
Add
Window
and$window
alias.Support
Zepto
as well asjQuery
.Event
is now a wrapper around native event from dom listeners.
0.0.9 2013-06-15
Revert earlier commit, and use
$document
as reference to jquery wrappeddocument
.Introduce Element.document as wrapped document element
Depreceate $document.title and $document.title=.
0.0.8 2013-05-02
Depreceate Document in favor of $document global.
Add HTTP.delete() for creating DELETE request.
0.0.7 2013-02-20
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.