angular-medium-editor icon indicating copy to clipboard operation
angular-medium-editor copied to clipboard

'undefined' is not a function (evaluating 'this.handleDrag.bind(this)') error

Open makdv opened this issue 9 years ago • 0 comments
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!

makdv avatar Apr 18 '16 22:04 makdv