Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion js/widgets/filterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $.widget( "mobile.filterable", {
}

this._timer = this._delay( function() {
this._trigger( "beforefilter", "beforefilter", { input: search } );
this._trigger( "beforefilter", null, { input: search } );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know this was wrong already but can you just split this onto multiple lines for the object.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't wrong. If the line fits in 100 characters, objects don't need to be split.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sorry i thought when i asked about this the other day you said if its in a function invocation it had to be ok well this is good to go then @jzaefferer 👍


// Change val as lastval for next execution
search[ 0 ].setAttribute( "data-" + $.mobile.ns + "lastval", val );
Expand Down Expand Up @@ -117,6 +117,10 @@ $.widget( "mobile.filterable", {
}

this._refreshChildWidget();

this._trigger( "filter", null, {
items: filterItems
});
},

// The Default implementation of _refreshChildWidget attempts to call
Expand Down