Plugin Directory

Changeset 627800

Timestamp:
11/20/2012 05:34:31 PM (12 years ago)
Author:
jblz
Message:

Jetpack: Notifications - Attempt to use core or plugin javascript libraries if already registered (Backbone, Underscore, Mustache).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/notes.php

    r621844 r627800  
    7474            return;
    7575        add_action( 'admin_bar_menu', array( &$this, 'admin_bar_menu'), 120 );
    76         add_action( 'wp_head', array( &$this, 'styles_and_scripts') );
     76        add_action( 'wp_head', array( &$this, 'styles_and_scripts') );
    7777        add_action( 'admin_head', array( &$this, 'styles_and_scripts') );
    7878    }
     
    8383
    8484        $this->print_js();
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
    85113        wp_enqueue_script( 'notes-postmessage', $this->wpcom_static_url( '/wp-content/js/postmessage.js' ), array(), JETPACK_NOTES__CACHE_BUSTER );
    86         wp_enqueue_script( 'mustache', $this->wpcom_static_url( '/wp-content/js/mustache.js' ), null, JETPACK_NOTES__CACHE_BUSTER );
    87         wp_enqueue_script( 'underscore', $this->wpcom_static_url( '/wp-content/js/underscore.js' ), null, JETPACK_NOTES__CACHE_BUSTER );
    88         wp_enqueue_script( 'backbone', $this->wpcom_static_url( '/wp-content/js/backbone.js' ), array( 'jquery', 'underscore' ), JETPACK_NOTES__CACHE_BUSTER );
    89114        wp_enqueue_script( 'notes-rest-common', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/notes-rest-common.js' ), array( 'backbone', 'mustache', 'jquery.spin' ), JETPACK_NOTES__CACHE_BUSTER );
    90115        wp_enqueue_script( 'notes-admin-bar-rest', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-rest.js' ), array( 'jquery', 'underscore', 'backbone', 'jquery.spin' ), JETPACK_NOTES__CACHE_BUSTER );
Note: See TracChangeset for help on using the changeset viewer.