Skip to content
Browse files

Cleanups

  • Loading branch information...
1 parent faef780 commit f90cdfeec6b8395bd5ead73a083e60e4bff9e212 @Seldaek committed Jan 15, 2012
Showing with 11 additions and 10 deletions.
  1. +5 −5 index.php
  2. +6 −5 php-console.js
View
10 index.php
@@ -74,11 +74,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Debug Console</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
- <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
- <script type="text/javascript" src="ace/ace.js"></script>
- <script type="text/javascript" src="ace/mode-php.js"></script>
- <script type="text/javascript" src="php-console.js"></script>
- <script type="text/javascript">
+ <script src="jquery-1.7.1.min.js"></script>
+ <script src="ace/ace.js"></script>
+ <script src="ace/mode-php.js"></script>
+ <script src="php-console.js"></script>
+ <script>
$.console({
tabsize: <?php echo json_encode($options['tabsize']) ?>
});
View
11 php-console.js
@@ -11,10 +11,11 @@
*
* Source on Github http://github.com/Seldaek/php-console
*/
-(function() {
-
- var updateStatusBar, handleKeyPress, options, editor;
+(function(require, $, ace) {
+ "use strict";
+ var updateStatusBar, prepareClippyButton, refreshKrumoState, handleSubmit, initializeAce,
+ options, editor;
options = {
tabsize: 4,
editor: 'editor'
@@ -50,7 +51,7 @@
$('<a class="expand" href="#">Toggle all</a>')
.click(function(e) {
$('div.krumo-element.krumo-expand').each(function(idx, el) {
- krumo.toggle(el);
+ window.krumo.toggle(el);
});
e.preventDefault();
})
@@ -122,4 +123,4 @@
$('form').submit(handleSubmit);
});
};
-}());
+}(require, jQuery, ace));

0 comments on commit f90cdfe

Please sign in to comment.
Something went wrong with that request. Please try again.