Created
September 15, 2009 18:39
-
-
Save ratbeard/187523 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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