Changeset 26685
- Timestamp:
- 12/05/2013 07:14:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r26660 r26685 130 130 // @uses RegExp 131 131 search: function( term ) { 132 var self = this, 133 match, results, haystack; 132 var match, results, haystack; 134 133 135 134 // Start with a full collection 136 self.reset( themes.data.themes);135 this.reset( themes.data.themes, { silent: true } ); 137 136 138 137 // The RegExp object to match … … 145 144 // Find results 146 145 // _.filter and .test 147 results = self.filter( function( data ) {146 results = this.filter( function( data ) { 148 147 haystack = _.union( data.get( 'name' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) ); 149 148 … … 155 154 }); 156 155 157 self.reset( results );156 this.reset( results ); 158 157 }, 159 158
Note: See TracChangeset
for help on using the changeset viewer.