diff --git a/spec/coffee/directives/api/control.spec.coffee b/spec/coffee/directives/api/control.spec.coffee
index e39ba3b53..0fab628d2 100644
--- a/spec/coffee/directives/api/control.spec.coffee
+++ b/spec/coffee/directives/api/control.spec.coffee
@@ -9,17 +9,6 @@ describe "directives.api.control", ->
expect(@subject).toBeDefined()
@log.error.calls.reset()
- it "should log error if no template is supplied", ->
- html = angular.element """
-
-
-
- """
- element = @compile(html)(@scope)
- @rootScope.$apply()
- expect(@log.error).toHaveBeenCalledWith('mapControl: could not find a valid template property or elements for transclusion')
- @log.error.calls.reset()
-
it "should load template", ->
html = angular.element """
diff --git a/src/coffee/directives/api/control.coffee b/src/coffee/directives/api/control.coffee
index bcd5fca62..5ceef0b92 100644
--- a/src/coffee/directives/api/control.coffee
+++ b/src/coffee/directives/api/control.coffee
@@ -9,13 +9,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
GoogleMapApi.then (maps) =>
# Validate attributes
- transcludedContent = transclude()
-
- hasTranscludedContent = transclude().length > 0
-
- if !hasTranscludedContent && angular.isUndefined scope.template
- @$log.error 'mapControl: could not find a valid template property or elements for transclusion'
- return
+ hasTranscludedContent = angular.isUndefined scope.template
index = if angular.isDefined scope.index and not isNaN(parseInt scope.index) then parseInt scope.index else undefined
@@ -44,7 +38,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
controlDiv.append transcludeEl
- pushControl(map, controlDiv, index)
+ pushControl(map, controlDiv.children(), index)
else
$http.get(scope.template, { cache: $templateCache })