[Javascript] creating a better console log

rene7705 rene7705 at gmail.com
Tue May 21 18:39:46 CDT 2013


it's nearly done :))

introducing "hipLog" at http://freegemini.me/sites/fancywebapps.com

use the light-colored button in the far lower-right of the browser's window
(once the site is fully loaded and initialized)..

posting this code into my git repositories sometime this week or the next.


On Fri, May 17, 2013 at 2:52 PM, rene7705 <rene7705 at gmail.com> wrote:

> solved the recursive function problem listed at
> http://stackoverflow.com/questions/15582309/traversing-arguments-callee-caller-causes-an-infinite-loop/16609406#16609406 today
> :)
>
> happy weekend folks :)
>
>
> On Tue, May 14, 2013 at 3:12 PM, rene7705 <rene7705 at gmail.com> wrote:
>
>> solved the jQuery problem;
>>
>> fwa.createFunction = function () {
>> var ua = tracer.findUA (arguments);
>>  func.ua = ua;
>> return func;
>> };
>>
>> jQuery.animate ({...,step:fwa.createFunction(function() { /*resizing
>> code*/ }), ... }, timespanms);
>>
>> tracer.findUA =
>> findUA : function (arg) {
>> var p = arg;
>>  if (p.ua) return p.ua;
>>
>>  var callee = arg.callee;
>> var caller = callee.caller;
>>
>> var stack = [callee];
>>
>>  while (caller) {
>>     if (stack.indexOf(caller) < 0) {
>>         stack.push(caller);
>>         args = caller.arguments;
>>         callee = args.callee;
>>         caller = callee.caller;
>>     } else break;
>> }
>>
>>  while (p = stack.shift()) {
>>  if (p.ua) return p.ua;
>>  if (p.arguments && p.arguments.ua) return p.arguments.ua;
>>  };
>> return false;
>>  },
>>
>>
>> I now only have a few remaining userAction gaps in my framework :))
>>
>> To be solved after another short nap <grin>
>> I love working for myself :)
>>
>> jQuery forum thread deleted, btw.
>>
>>
>>
>> On Tue, May 14, 2013 at 6:25 AM, rene7705 <rene7705 at gmail.com> wrote:
>>
>>> I posted the jQuery problem at
>>> http://forum.jquery.com/topic/creating-more-useful-logs
>>>
>>
>>
>


More information about the Javascript mailing list