Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

TypeError: el.style is undefined #1381

Open
@ghost

Description

when content is salt string. We get an exception.

controller section:

  $scope.map = {
    'windowControl': {},
    'center'       : {
      'latitude' : 40,
      'longitude': 29
    },
    'zoom'         : 20,
    'options'      : {
      'content'    : 'test',
      'pixelOffset': {
        'width' : 0,
        'height': -40
      }
    }
  };

  $scope.showInfoWindow = function () {

    $scope.map.control.showWindow();
  };

html:

        <ui-gmap-google-map center="map.center" zoom="map.zoom">
          <ui-gmap-marker idKey='1' coords="map.center" click="showInfoWindow()"></ui-gmap-marker>
          <ui-gmap-window coords="map.center" show="true" options="map.options" control="map.windowControl"></ui-gmap-window>
        </ui-gmap-google-map>

the code that throws exception:

        maybeRepaint: function(el) {
          if (el) {
            el.style.opacity = 0.9;
            return $timeout(function() {
              return el.style.opacity = 1;
            });
          }


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions