Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Refresh method on the listview throws an error when called #293

Closed
wants to merge 2 commits into from

1 participant

Alexander Dimitrov
Alexander Dimitrov

The "this" keyword gets overwritten by $.each in the refresh method, causing an error when calling this._itemApply

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  js/jquery.mobile.listview.js
3  js/jquery.mobile.listview.js
View
@@ -148,6 +148,7 @@ jQuery.widget( "mobile.listview", jQuery.mobile.widget, {
var o = this.options,
$list = this.element,
+ self = this,
dividertheme = $list.data( "dividertheme" ) || o.dividerTheme,
li = $list.children( "li" ),
counter = jQuery.support.cssPseudoElement || !jQuery.nodeName( $list[0], "ol" ) ? 0 : 1;
@@ -264,7 +265,7 @@ jQuery.widget( "mobile.listview", jQuery.mobile.widget, {
item.addClass( itemClass );
if ( !create ) {
- this._itemApply( $list, item );
+ self._itemApply( $list, item );
}
});
},
Something went wrong with that request. Please try again.