cli functions

1 view
Skip to first unread message

Steven Parkes

unread,
Mar 11, 2010, 12:45:43 PM3/11/10
to johnso...@googlegroups.com
I use the CLI functions in env.js but need to override some of them ... override a priori. Any objection to only defining them if they aren't already defined, e.g.,

this.load = this.load || function load() {...};

John Barnette

unread,
Mar 11, 2010, 5:20:38 PM3/11/10
to johnso...@googlegroups.com
On Mar 11, 2010, at 9:45 AM, Steven Parkes wrote:
> I use the CLI functions in env.js but need to override some of them ... override a priori. Any objection to only defining them if they aren't already defined, e.g.,
>
> this.load = this.load || function load() {...};

I don't have a problem with that, what are you overriding 'em for?


~ j.


Steven Parkes

unread,
Mar 11, 2010, 6:56:45 PM3/11/10
to johnso...@googlegroups.com
> I don't have a problem with that, what are you overriding 'em for?

Just load. I do a bunch of things like cache scripts and track dependences.

Reply all
Reply to author
Forward
0 new messages