Personally, I declare all elements, functions as others, I name each
function and I assign to a variable of the same name.

Here's how I structure each scope :

:// declaration block
var foo;

// allocation block
foo = function foo() {
    var bar;

    // ...
};

In this way, my declaration block is like a summary of the used elements.


Michaël Rouges - https://github.com/Lcfvs - @Lcfvs


2013/12/6 Matt <[email protected]>

>
> On Fri, Dec 6, 2013 at 4:01 PM, Alex Kocharin <[email protected]> wrote:
>
>> I'm still seeing Object.<anonymous> in stack traces from time to time
>> though.
>>
>
> Perhaps from: (function () { x() })(); ?
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to