From 0eef8d70adfc79d93ff9d1815d1f93ee553ec050 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 11 Jul 2013 09:42:54 +0200 Subject: [PATCH] remove warnings --- src/main/webapp/js/directives.js | 2 +- src/main/webapp/js/template-loader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index 737b19ba..33099cb9 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -185,7 +185,7 @@ module.directive('recursive', [ '$compile', function($compile) { priority : 100000, compile : function(tElement, tAttr) { var contents = tElement.contents().remove(); - var compiledContents; + var compiledContents = null; return function(scope, iElement, iAttr) { if (!compiledContents) { compiledContents = $compile(contents); diff --git a/src/main/webapp/js/template-loader.js b/src/main/webapp/js/template-loader.js index 01b78d76..267831b9 100644 --- a/src/main/webapp/js/template-loader.js +++ b/src/main/webapp/js/template-loader.js @@ -2,7 +2,7 @@ var app = angular.module('commafeed.services'); app.factory('$templateCache', ['$cacheFactory', '$http', '$injector', function($cacheFactory, $http, $injector) { var cache = $cacheFactory('templates'); - var allTplPromise; + var allTplPromise = null; return { get : function(url) {