Skip to content

Instantly share code, notes, and snippets.

@ratbeard
Created September 15, 2009 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratbeard/187523 to your computer and use it in GitHub Desktop.
Save ratbeard/187523 to your computer and use it in GitHub Desktop.
This illustrates the problem better:
something_that_will_insert_element_in_page()
console.log('length:::');
console.log($('#calc_historical_field').length); // 0
(function () {
console.log('length::::');
console.log($('#calc_historical_field').length); // 1
}).defer(1000)
...binding a calc line...
before
<<< line
_id: 'BMI',
display_name: 'Body Mass Index',
line_type: 'calc',
calc_historic: '[Weight] / 5',
>>> transforms: 'line'
^
before_each
bind(@line)
... binds `_id`
area.should.have_input 'calc_id', 'BMI'
... binds `display_name`
area.should.have_input 'calc_display_name', 'Body Mass Index'
...builds calc input fields for columns...
before
... asks for the current sheet columns
area.should.have_input 'calc_historical'
for (var i = 0; i < 10000000; i++) { i++; i--; i += 0}
console.log($('#calc_historical_field').length);
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment