angular-medium-editor
angular-medium-editor copied to clipboard
'undefined' is not a function (evaluating 'this.handleDrag.bind(this)') error
trafficstars
When complling the element and then binding it to scope in Jasmine test for testing my directive, for example something like this: $compile(angular.element('
'))($rootScope.$new()) the following error occures: 'undefined' is not a function (evaluating 'this.handleDrag.bind(this)'). When do the same in in directive in main code - everything is ok!