Fix indentation
Fix #136: Fix some NavBar tests in Safari and IE10

- A dispose check was missing
- JavaScript was using an inline style to set display to flex. However,
  the display value needs a vendor prefix in some browsers. The fix
  switches from an inline style to the NavBar's LESS styles which already
  know how to specify the appropriate prefix.
- Changed technique for firing window resize in the unit tests to a method
  that is supported by IE10.