From d987a79ab198bff150bf47b41d98e5dea5b06a4b Mon Sep 17 00:00:00 2001 From: metaweta Date: Tue, 29 Jan 2013 11:34:14 -0800 Subject: test(ngBindHtml): prevent variable name leak Add "var" so element is local instead of global Strict mode doesn't allow undeclared global vars, and these really should be local anyway. --- test/ngSanitize/directive/ngBindHtmlSpec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/ngSanitize/directive/ngBindHtmlSpec.js b/test/ngSanitize/directive/ngBindHtmlSpec.js index be23e5a5..6759c6d2 100644 --- a/test/ngSanitize/directive/ngBindHtmlSpec.js +++ b/test/ngSanitize/directive/ngBindHtmlSpec.js @@ -1,8 +1,11 @@ +'use strict'; + + describe('ngBindHtml', function() { beforeEach(module('ngSanitize')); it('should set html', inject(function($rootScope, $compile) { - element = $compile('
')($rootScope); + var element = $compile('')($rootScope); $rootScope.html = '