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: truewhere 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 optionalindexonEvent#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_allandElement#replace_with(#110) -
Open the opal dependency to any 1.x
0.4.4 2019-07-01
-
Use
::Native::Wrapperwhere available -
Allow Opal 1.0 in gemspec
0.4.3 2018-09-07
-
Add
Element#==as an alias of.is() -
Add
Element#method_missingto 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#propviaNative.callto get the right semantics aroundnilvs.undefinedbreaking -
Expose
Element#click -
Fix semantics of
Element#attrto better reflect jQuery's breaking -
Skip sending a callback to
Element#animateif no block is given -
Let
Element#datareturn a usable Ruby object (Array/Hash) instead of a native one breaking -
Don't wrap events with
Event.newif no args are provided or the event is not a native object to increase performance inElement#onandElement#one -
Rename the internal property holding the callback wrapper in
Element#onandElement#onefrom._jq_wrapto.$$jqwrapto avoid polluting instance variables and following the custom of Opal's core classes -
Fix
Element#value,Element#heightandElement#widthto perform the||at ruby level to avoid overwriting values that are falsy in JavaScript withnilbreaking -
Add
Element#==as an alias to jQuery's.is() -
Add
Element#method_missingandElement#respond_to_missing?to forward calls to native plugins -
Add
HTTP#inspectwith 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.parsenow relies on$.parseHTMLin conjunction with$enforcing actual HTML parsing. -
Added
Document.readythat 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#attrnow better follows jQuery's behaviour by checking the number of arguments passed. Also it's now just a proxy toElement#[]andElement#[]= -
Element#[]now returnsnilonly for attributes that are missing, better following jQuery behaviour (which is to returnundefinedon such attributes).Element#has_attribute?has been updated accordingly. -
Add
Element#prependmethod.
-
Move all files under
opal/jqueryrequire namespace, rather than currentopal-jqueryrequire paths. -
Add
Browser::Windowclass, and make::Windowan instance of it. -
Make
DocumentincludeBrowser::DocumentMethodswhich is a simple module to define custom methods forDocument. -
Cleanup HTTP implementation.
-
Element#[]andElement#attrnow returnnilfor empty attributes, instead of returning an empty string. -
Add
HTTP.setupandHTTP.setup=to access$.ajaxSetup -
Add PATCH and HEAD support to
HTTP -
Let
Elementaccept previously definedJQUERY_CLASSandJQUERY_SELECTORfor environments such as node-webkit where$can't be found in the global object. -
Add Promise support to
HTTPget/post/put/delete methods. Also removeHTTP#callbackand#errbackmethods.
-
Add
Document.bodyandDocument.headshortcut to element instances. -
Add
Eventmethods:prevented?,prevent,stopped?andstopto replace longer javascript names. -
Add
LocalStorageimplementation. -
Fix
Element#data()to returnnilfor an undefined data attribute instead of null. -
Expose
#detachmethod onElement.
-
Support setting html content through
Element#html(). -
Add
Elementmethods:#get,#attrand#propby aliasing them to jquery implementations.
- Require
nativefrom stdlib forHTTPto use.
-
Add
Windowand$windowalias. -
Support
Zeptoas well asjQuery. -
Eventis now a wrapper around native event from dom listeners.
-
Revert earlier commit, and use
$documentas 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.