Commit 9955538c authored by Sean Hammond's avatar Sean Hammond

No need for createDirective() to be a var

parent fa9a39a6
......@@ -304,7 +304,6 @@ describe('annotation.js', function() {
var $timeout;
var $window;
var annotation;
var createDirective;
var fakeAnnotationMapper;
var fakeAnnotationUI;
var fakeDocumentDomainFilter;
......@@ -323,7 +322,7 @@ describe('annotation.js', function() {
var fakeUrlEncodeFilter;
var sandbox;
createDirective = function() {
function createDirective() {
var element = angular.element('<div annotation="annotation">');
compileService()(element)($scope);
$scope.$digest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment