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() { ...@@ -304,7 +304,6 @@ describe('annotation.js', function() {
var $timeout; var $timeout;
var $window; var $window;
var annotation; var annotation;
var createDirective;
var fakeAnnotationMapper; var fakeAnnotationMapper;
var fakeAnnotationUI; var fakeAnnotationUI;
var fakeDocumentDomainFilter; var fakeDocumentDomainFilter;
...@@ -323,7 +322,7 @@ describe('annotation.js', function() { ...@@ -323,7 +322,7 @@ describe('annotation.js', function() {
var fakeUrlEncodeFilter; var fakeUrlEncodeFilter;
var sandbox; var sandbox;
createDirective = function() { function createDirective() {
var element = angular.element('<div annotation="annotation">'); var element = angular.element('<div annotation="annotation">');
compileService()(element)($scope); compileService()(element)($scope);
$scope.$digest(); $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