javascript - uncaught exception error "Illegal operation on WrappedNative prototype object" -


is there idea why following javascript/jquery code might produce error message: uncaught exception: [exception... "illegal operation on wrappednative prototype object"] ?

code:

function deletereceipt(id){  var $delconfdialog = $('<div id="dialog-confirm"></div')                        .html('are sure want delete receipt?')                        .dialog({                           autoopen: true,                           title: 'delete confirmation',                           buttons: {                              "delete": function(){                                 $.post('receipt.py',{'cm':'delete','receiptid': obj},function(){                                    $('#receiptrow'+id).remove();                                 });                                 $(this).dialog('close');                              },                              "cancel" :function(){                                 $(this).dialog('close');                                 }                           }                        });     } 

you violating basic oop principles here: separate method object.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -