Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleanups

  • Loading branch information...
commit f90cdfeec6b8395bd5ead73a083e60e4bff9e212 1 parent faef780
Jordi Boggiano authored January 15, 2012

Showing 2 changed files with 11 additions and 10 deletions. Show diff stats Hide diff stats

  1. 10  index.php
  2. 11  php-console.js
10  index.php
@@ -74,11 +74,11 @@
74 74
         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
75 75
         <title>Debug Console</title>
76 76
         <link rel="stylesheet" type="text/css" href="styles.css" />
77  
-        <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
78  
-        <script type="text/javascript" src="ace/ace.js"></script>
79  
-        <script type="text/javascript" src="ace/mode-php.js"></script>
80  
-        <script type="text/javascript" src="php-console.js"></script>
81  
-        <script type="text/javascript">
  77
+        <script src="jquery-1.7.1.min.js"></script>
  78
+        <script src="ace/ace.js"></script>
  79
+        <script src="ace/mode-php.js"></script>
  80
+        <script src="php-console.js"></script>
  81
+        <script>
82 82
             $.console({
83 83
                 tabsize: <?php echo json_encode($options['tabsize']) ?>
84 84
             });
11  php-console.js
@@ -11,10 +11,11 @@
11 11
  *
12 12
  * Source on Github http://github.com/Seldaek/php-console
13 13
  */
14  
-(function() {
15  
-
16  
-    var updateStatusBar, handleKeyPress, options, editor;
  14
+(function(require, $, ace) {
  15
+    "use strict";
17 16
 
  17
+    var updateStatusBar, prepareClippyButton, refreshKrumoState, handleSubmit, initializeAce,
  18
+        options, editor;
18 19
     options = {
19 20
         tabsize: 4,
20 21
         editor: 'editor'
@@ -50,7 +51,7 @@
50 51
             $('<a class="expand" href="#">Toggle all</a>')
51 52
                 .click(function(e) {
52 53
                     $('div.krumo-element.krumo-expand').each(function(idx, el) {
53  
-                        krumo.toggle(el);
  54
+                        window.krumo.toggle(el);
54 55
                     });
55 56
                     e.preventDefault();
56 57
                 })
@@ -122,4 +123,4 @@
122 123
             $('form').submit(handleSubmit);
123 124
         });
124 125
     };
125  
-}());
  126
+}(require, jQuery, ace));

0 notes on commit f90cdfe

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