I'm not sure what you're asking.  Is this re: the function declarations?  If so, encapsulating in classes will take care of most of that, but JS is a scripted language and so load order is significant.

a

--

adam strickland : adam.strickland@gmail.com : 214.906.3350

On 10-Feb-2013, at 20:04 , John Lehmann <notifications@github.com> wrote:

> In src/timecalc.js:
> 
> > -/*global $, jQuery, moment*/
> > -
> > -// namespacing does not allow Jasmine to see my functions
> > -//(function() {
> > -
> > -'use strict';
> > -
> > -var HOUR_PRECISION = 2;
> > -
> > -// I want to define my functions top-down, but declaring them satisfies strict.
> > -var clearAndInit, updateTotalsOnBlur, selectAllOnClick, enterAdvancesField, clearButton, addRow, clearRow, updateTotalColumn, rowTotal, updateRow, lastRow, computeRow, updateInputIfValid, parseTime, addTimes;
> > -
> > -/**
> > - * Setup.
> > - */
> > -$(document).ready(function () {
> Did you have a response for me on this one? Do you get github notifications. :)
> 
> —
> Reply to this email directly or view it on GitHub..
> 
>