Ensure js objects are declared early

git-svn-id: https://develop.svn.wordpress.org/trunk@9780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-19 06:58:38 +00:00
parent 3b9b10645f
commit 8f213372ea
2 changed files with 6 additions and 2 deletions

View File

@ -214,8 +214,8 @@ jQuery(document).ready( function($) {
}); });
}); });
var showNotice, adminMenu, columns;
(function($){ (function($){
// stub for doing better warnings // stub for doing better warnings
showNotice = { showNotice = {
warn : function(text) { warn : function(text) {
@ -229,7 +229,9 @@ showNotice = {
alert(text); alert(text);
} }
}; };
})(jQuery);
(function($){
// sidebar admin menu // sidebar admin menu
adminMenu = { adminMenu = {
@ -319,7 +321,9 @@ adminMenu = {
}; };
$(document).ready(function(){adminMenu.init();}); $(document).ready(function(){adminMenu.init();});
})(jQuery);
(function($){
// show/hide/save table columns // show/hide/save table columns
columns = { columns = {
init : function(page) { init : function(page) {

View File

@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->base_url = $guessurl; $scripts->base_url = $guessurl;
$scripts->default_version = get_bloginfo( 'version' ); $scripts->default_version = get_bloginfo( 'version' );
$scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081111' ); $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081118' );
$scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
$scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' ); $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );