|
@@ 137-139 (lines=3) @@
|
| 134 |
|
wp_register_script( 'mustache', $this->wpcom_static_url( '/wp-content/js/mustache.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 135 |
|
} |
| 136 |
|
$script_handles[] = 'mustache'; |
| 137 |
|
if ( !wp_script_is( 'underscore', 'registered' ) ) { |
| 138 |
|
wp_register_script( 'underscore', $this->wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 139 |
|
} |
| 140 |
|
$script_handles[] = 'underscore'; |
| 141 |
|
if ( !wp_script_is( 'backbone', 'registered' ) ) { |
| 142 |
|
wp_register_script( 'backbone', $this->wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
|
@@ 141-143 (lines=3) @@
|
| 138 |
|
wp_register_script( 'underscore', $this->wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 139 |
|
} |
| 140 |
|
$script_handles[] = 'underscore'; |
| 141 |
|
if ( !wp_script_is( 'backbone', 'registered' ) ) { |
| 142 |
|
wp_register_script( 'backbone', $this->wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
| 143 |
|
} |
| 144 |
|
$script_handles[] = 'backbone'; |
| 145 |
|
|
| 146 |
|
wp_register_script( 'wpcom-notes-common', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/notes-common-v2.js' ), array( 'jquery', 'underscore', 'backbone', 'mustache' ), JETPACK_NOTES__CACHE_BUSTER ); |