Angular / Breeze:挂起保存 - 如何排除故障?

时间:2014-04-03 01:41:55

标签: angularjs breeze

几天以后,我正在努力解决这个问题。当我尝试保存更改(非常小的更改,只有一个属性更改)时,它会卡住。在Chrome中,当我点击休息时,我得到了以下调用堆栈:

(anonymous function) (breeze.debug.js:8113)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:168)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:175)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187)
__toJSONSafe (breeze.debug.js:187) (anonymous function) (breeze.debug.js:13975) unwrapInstance (breeze.debug.js:13963) (anonymous function) (breeze.debug.js:15394) ctor._prepareSaveBundle (breeze.debug.js:15393) breeze.AbstractDataServiceAdapter.ctor.saveChanges (breeze.debug.js:14704) proto.saveChanges (breeze.debug.js:12793) SaveQueuing.innerSaveChanges (breeze.savequeuing.js:98) saveChangesWithQueuing (breeze.savequeuing.js:81)
_saveEntity (commonContext.js:220)
_save (commonContext.js:295) (anonymous function) (angular.js:10294) isolateScope.(anonymous function) (angular.js:6243) (anonymous function) (angular.js:10294) (anonymous function) (angular.js:18229) Scope.$eval (angular.js:12075) Scope.$apply (angular.js:12173) (anonymous function) (angular.js:18228) jQuery.event.dispatch (jquery-2.0.3.js:4676) elemData.handle (jquery-2.0.3.js:4360)

如何解决此类问题?可能是什么问题?

这个页面有很多绑定。我是否达到了Angular绑定的极限?有什么限制?

更新: 当我一直按下break按钮时,我经常看到它停在breeze.debug.js的第8113行,在那里它会抛出新的错误。

proto.addProperty = function (dataProperty) {
    assertParam(dataProperty, "dataProperty").isInstanceOf(DataProperty).check();
    if (this.metadataStore && ! dataProperty.isUnmapped) {
        throw new Error("The '" + this.name + "' ComplexType has already been added to a MetadataStore and therefore no additional properties may be added to it.");
    }
    if (dataProperty.parentType) {
        if (dataProperty.parentType !== this) {
            throw new Error("This dataProperty has already been added to " + property.parentType.name);
        } else {
            return this;
        }
    }
    this._addDataProperty(dataProperty);

    return this;
};

那么,我的数据结构有问题吗?

0 个答案:

没有答案