Plugin Directory

Changeset 1533397


Ignore:
Timestamp:
11/13/2016 08:16:24 PM (9 years ago)
Author:
fedeandri
Message:

add version 1.2.3

Location:
bugfu-console-debugger
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • bugfu-console-debugger/tags/1.2.3/bugfu-console-debugger.php

    r1533229 r1533397  
    55 *  Plugin URI: https://github.com/fedeandri/bugfu-console-debugger
    66 *  Description: BugFu lets you log from PHP directly to your Browser JavaScript Console - Meant as an aid to those practicing the ancient art of debugging
    7  *  Version: 1.2.2
     7 *  Version: 1.2.3
    88 *  Author: Federico Andrioli
    99 *  Author URI: https://it.linkedin.com/in/fedeandri
     
    2020    {
    2121
    22         const PLUGIN_VERSION = '1.2.2';
     22        const PLUGIN_VERSION = '1.2.3';
    2323        const PLUGIN_PREFIX = 'bugfu';
    2424        const PLUGIN_SHORT_NAME = 'BugFu';
  • bugfu-console-debugger/tags/1.2.3/js/ajax-bugfu-console-debugger.js

    r1528729 r1533397  
    11(function($) {
    22   
    3     var bugfu_can_read_log = true;
    43    var bugfu_previous_log = null;
    5     var bugfu_read_log_interval = null;
    6     var bugfu_interval_millisec = 350;
    7 
     4    var bugfu_is_reading_log = false;
     5   
    86    $( document ).ready( function() {
    97
    10         bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec );
    11     });
     8        bugfu_read_log();
    129
    13     $( document ).ajaxSend( function() {
     10        $( document ).ajaxSend( function() {
    1411
    15         if( bugfu_read_log_interval == null ) {
    16 
    17             bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec );
    18         }
     12            if( bugfu_previous_log !== null ) {
     13                bugfu_read_log();
     14            }
     15        });
     16       
    1917    });
    2018
    2119    function bugfu_read_log() {
    2220
    23         if( bugfu_can_read_log ) {
     21        if( !bugfu_is_reading_log ) {
    2422
    25             bugfu_can_read_log = false;
     23            bugfu_is_reading_log = true;
    2624
    2725            var data = {
     
    3937                    var log = response.data.log;
    4038
    41                     if( log || bugfu_previous_log == null ) {
     39                    if( log.length > 0 || bugfu_previous_log === null ) {
    4240                       
    4341                        console.log(preheader.concat(header, "\n\n", log, "\n\n\n"));
    44                         bugfu_previous_log = log;
     42                        bugfu_previous_log = log;
    4543                    }
    4644
    47                     clearInterval(bugfu_read_log_interval);
    48                     bugfu_read_log_interval = null;
    49                     bugfu_can_read_log = true;
     45                    bugfu_is_reading_log = false;
    5046                },
    5147                error: function(){
    52                    
    53                     clearInterval(bugfu_read_log_interval);
    54                     bugfu_read_log_interval = null;
    55                     bugfu_can_read_log = true;
     48
     49                    bugfu_is_reading_log = false;
    5650                }
    5751            });
  • bugfu-console-debugger/tags/1.2.3/readme.txt

    r1533229 r1533397  
    44Requires at least: 3.8
    55Tested up to: 4.7
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676== Changelog ==
    7777
     78= 1.2.3 =
     79* Update and simplify the AJAX calls debugging feature
     80
    7881= 1.2.2 =
    7982* Prevent PHP notice when not logging from a class
  • bugfu-console-debugger/trunk/bugfu-console-debugger.php

    r1533229 r1533397  
    55 *  Plugin URI: https://github.com/fedeandri/bugfu-console-debugger
    66 *  Description: BugFu lets you log from PHP directly to your Browser JavaScript Console - Meant as an aid to those practicing the ancient art of debugging
    7  *  Version: 1.2.2
     7 *  Version: 1.2.3
    88 *  Author: Federico Andrioli
    99 *  Author URI: https://it.linkedin.com/in/fedeandri
     
    2020    {
    2121
    22         const PLUGIN_VERSION = '1.2.2';
     22        const PLUGIN_VERSION = '1.2.3';
    2323        const PLUGIN_PREFIX = 'bugfu';
    2424        const PLUGIN_SHORT_NAME = 'BugFu';
  • bugfu-console-debugger/trunk/js/ajax-bugfu-console-debugger.js

    r1528729 r1533397  
    11(function($) {
    22   
    3     var bugfu_can_read_log = true;
    43    var bugfu_previous_log = null;
    5     var bugfu_read_log_interval = null;
    6     var bugfu_interval_millisec = 350;
    7 
     4    var bugfu_is_reading_log = false;
     5   
    86    $( document ).ready( function() {
    97
    10         bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec );
    11     });
     8        bugfu_read_log();
    129
    13     $( document ).ajaxSend( function() {
     10        $( document ).ajaxSend( function() {
    1411
    15         if( bugfu_read_log_interval == null ) {
    16 
    17             bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec );
    18         }
     12            if( bugfu_previous_log !== null ) {
     13                bugfu_read_log();
     14            }
     15        });
     16       
    1917    });
    2018
    2119    function bugfu_read_log() {
    2220
    23         if( bugfu_can_read_log ) {
     21        if( !bugfu_is_reading_log ) {
    2422
    25             bugfu_can_read_log = false;
     23            bugfu_is_reading_log = true;
    2624
    2725            var data = {
     
    3937                    var log = response.data.log;
    4038
    41                     if( log || bugfu_previous_log == null ) {
     39                    if( log.length > 0 || bugfu_previous_log === null ) {
    4240                       
    4341                        console.log(preheader.concat(header, "\n\n", log, "\n\n\n"));
    44                         bugfu_previous_log = log;
     42                        bugfu_previous_log = log;
    4543                    }
    4644
    47                     clearInterval(bugfu_read_log_interval);
    48                     bugfu_read_log_interval = null;
    49                     bugfu_can_read_log = true;
     45                    bugfu_is_reading_log = false;
    5046                },
    5147                error: function(){
    52                    
    53                     clearInterval(bugfu_read_log_interval);
    54                     bugfu_read_log_interval = null;
    55                     bugfu_can_read_log = true;
     48
     49                    bugfu_is_reading_log = false;
    5650                }
    5751            });
  • bugfu-console-debugger/trunk/readme.txt

    r1533229 r1533397  
    44Requires at least: 3.8
    55Tested up to: 4.7
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676== Changelog ==
    7777
     78= 1.2.3 =
     79* Update and simplify the AJAX calls debugging feature
     80
    7881= 1.2.2 =
    7982* Prevent PHP notice when not logging from a class
Note: See TracChangeset for help on using the changeset viewer.