Changeset 54241
- Timestamp:
- 09/20/2022 03:50:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/util.js
r51238 r54241 37 37 38 38 return function ( data ) { 39 if ( ! document.getElementById( 'tmpl-' + id ) ) { 40 throw new Error( 'Template not found: ' + '#tmpl-' + id ); 41 } 39 42 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options ); 40 43 return compiled( data );
Note: See TracChangeset
for help on using the changeset viewer.