forked from Archives/Athou_commafeed
remove warnings
This commit is contained in:
@@ -185,7 +185,7 @@ module.directive('recursive', [ '$compile', function($compile) {
|
|||||||
priority : 100000,
|
priority : 100000,
|
||||||
compile : function(tElement, tAttr) {
|
compile : function(tElement, tAttr) {
|
||||||
var contents = tElement.contents().remove();
|
var contents = tElement.contents().remove();
|
||||||
var compiledContents;
|
var compiledContents = null;
|
||||||
return function(scope, iElement, iAttr) {
|
return function(scope, iElement, iAttr) {
|
||||||
if (!compiledContents) {
|
if (!compiledContents) {
|
||||||
compiledContents = $compile(contents);
|
compiledContents = $compile(contents);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ var app = angular.module('commafeed.services');
|
|||||||
|
|
||||||
app.factory('$templateCache', ['$cacheFactory', '$http', '$injector', function($cacheFactory, $http, $injector) {
|
app.factory('$templateCache', ['$cacheFactory', '$http', '$injector', function($cacheFactory, $http, $injector) {
|
||||||
var cache = $cacheFactory('templates');
|
var cache = $cacheFactory('templates');
|
||||||
var allTplPromise;
|
var allTplPromise = null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
get : function(url) {
|
get : function(url) {
|
||||||
|
|||||||
Reference in New Issue
Block a user