extend object with editor

extend object with editor

pmengopmengo Posts: 74Questions: 37Answers: 2

This is a one million question.

I am doing this:
$.extend(myTableName.tbl, tbl);
$.extend(myTableName.editor, editor);

Everithing fine with tbl. But with editor when i log myTable.editor it is diferent from editor

Editor {s: Object, classes: Object, i18n: Object, dom: Object, jQuery211018336762349111080.7796777198556728: 2138}

Object {s: Object, classes: Object, i18n: Object, dom: Object, CLASS: "Editor"…}

@Allan do you see the diference? Editor is a Editor instance and myTablename.Editor is anobject

This question has an accepted answers - jump to answer

Answers

  • pmengopmengo Posts: 74Questions: 37Answers: 2
    Answer ✓

    Nevermind.

    myTabeName.editor = new $.fn.dataTable.Editor({....

This discussion has been closed.