_initUIEvent in widget-uievents.js throws up in chrome when used more than once. #2000

Open
botfanatic opened this Issue Apr 26, 2016 · 0 comments

Projects

None yet

1 participant

@botfanatic

It's probably a typo, but it seems that the value 1 is being assigned to a variable (_uiEvtsInitQueue) that should be an array.

_initUIEvent: function (type) {
    var sType = this._getUIEvent(type),
        queue = this._uiEvtsInitQueue || {};

    if (sType && !queue[sType]) {

        this._uiEvtsInitQueue = queue[sType] = 1;

        this.after(RENDER, function() {
            this._createUIEvent(sType);
            delete this._uiEvtsInitQueue[sType];
        });
    }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment