Please can someone explain to me the difference between these two approaches to node scoped context?
if ( !context.count ) context.count=0;
context.count++;
node.warn( context.count );
or
var Count = node.get( "count" ) || 0;
Count++;
node.warn( Count );
node.set( "count" , Count );
The first seems much simpler but I have been unable to find it documented anywhere.
Thank you
Graham