0

嗨,当我尝试关闭模式窗口时,出现以下异常。

TypeError: Cannot read property 'ng339' of undefined

我使用 angular 1.3 和 ui-bootstrap 0.12 .. 当我使用 highcharts-ng 指令时出现此错误 在模态中出现此错误。不知道出了什么问题。

<div class="modal-large">
<div class="modal-header">
    <button class="close" type="button" data-ng-click="previewReport.closeModal()">&nbsp;</button>
    <h3 class="modal-title" data-ng-bind="previewReport.header"></h3>
</div>
<div class="modal-body">
  <div class="ctf-content">
      <div data-ng-if="previewReport.chartConfig !== undefined && previewReport.chartConfig !== null">
          <data-highchart config="previewReport.chartConfig"></data-highchart>
      </div>
  </div>
</div>

它只是在这里失败了

function removeAfterAnimate(domEl, scope, emulateTime, done) {

在线的

domEl.remove();

错误堆栈..

at jqLiteRemoveData (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:2488:26)
at jqLiteDealoc (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:2457:7)
at forEach.remove (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:3097:5)
at Object.JQLite.(anonymous function) [as remove] (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:3182:17)
at afterAnimating (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:28874:17)
at http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:14487:28
at completeOutstandingRequest (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:4504:10)
at http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:4804:7 
4

1 回答 1

0

在我发现问题时关闭它是因为 previewReport 未定义且“previewReport.chartConfig”并在此处失败。

于 2014-12-04T11:56:47.087 回答