@@ 134-136 (lines=3) @@ | ||
131 | if ( !wp_script_is( 'mustache', 'registered' ) ) { |
|
132 | wp_register_script( 'mustache', $this->wpcom_static_url( '/wp-content/js/mustache.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
|
133 | } |
|
134 | if ( !wp_script_is( 'underscore', 'registered' ) ) { |
|
135 | wp_register_script( 'underscore', $this->wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
|
136 | } |
|
137 | if ( !wp_script_is( 'backbone', 'registered' ) ) { |
|
138 | wp_register_script( 'backbone', $this->wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
|
139 | } |
|
@@ 137-139 (lines=3) @@ | ||
134 | if ( !wp_script_is( 'underscore', 'registered' ) ) { |
|
135 | wp_register_script( 'underscore', $this->wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
|
136 | } |
|
137 | if ( !wp_script_is( 'backbone', 'registered' ) ) { |
|
138 | wp_register_script( 'backbone', $this->wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
|
139 | } |
|
140 | ||
141 | 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 ); |
|
142 | wp_enqueue_script( 'wpcom-notes-admin-bar', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-v2.js' ), array( 'wpcom-notes-common' ), JETPACK_NOTES__CACHE_BUSTER ); |