refs #HOT-42
refs #HOT-42
zmiany w testach
small changes
remove console.logs
bugfix: wrong order of assignments resulted in reverse event invocation (because `bubbling` became a function, which always resolves to boolean true)
bugfix: instance.eventListeners.push must be done after `delegate`, `callback`, `bubbling` are resolved - otherwise the wrong values are saved in the array
bug fix: overwriting callback function with a function expression makes it impossible to removeEventListener to remove the original handler
bugfix: `clear` and `removeEventListener` did not work if the `delegate` argument was omitted
remove console.logs
be consistent - always use document.documentElement
bugfix: removeElementListener was used without handler/callback argument
bugfix: removeEventListener was used on an event that was never added
bugfix: eventManager.clear() was not called when Handsontable is destroyed
cleanup: rename `bubbling` to `useCapture` (as in MDN and MSDN; because value false means "bubbling", true means "capture")
Merge branch 'feature/hot-47' into feature/HOT-42
working to fix all tests
now number of wrong tests reduced to +- 12

wrong tests in
  <script src="spec/plugins/contextMenuSpec.js"></script>
  cannot unbind events for hiders

  <script src="spec/renderers/checkboxRendererSpec.js"></script>
  dblclick problem

 <script src="spec/plugins/manualColumnMoveSpec.js"></script>
 <script src="spec/plugins/manualColumnResizeSpec.js"></script>
event delegate problem
add jquery simulate plugin to SpecRunner template
just use the same `mouseDoubleClick` method that was here before
here we should trigger click event, not add a listener