Skip to content

setter is undefined in blur: function #2

@bonatoc

Description

@bonatoc

console.log returns setter as undefined for this line :

        var options = {};
        options.on = {
            blur: function (e) {
                if (e.editor.checkDirty()) {
                    var ckValue = e.editor.getData();
                    scope.$apply(function () {
        setter(scope, ckValue); // "undefined is not a function"
                    });
                    ckValue = null;
                    e.editor.resetDirty();
                }
            }
        };

Not really a problem for me, because ckValue is filled with data entered "pre-blur", and I can then update my REST service, but still, I'm wondering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions