[ https://issues.apache.org/jira/browse/CB-13201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Piotrowski (Sujan) updated CB-13201: ---------------------------------------- Description: I am developing a Cordova-based app for a Windows 10 platform. There is a button that whenever I press, cordova.js throws the following exception at this function: {code} document.removeEventListener = function(evt, handler, capture) { var e = evt.toLowerCase(); // If unsubscribing from an event that is handled by a plugin if (typeof documentEventHandlers[e] != "undefined") { documentEventHandlers[e].unsubscribe(handler); } else { m_document_removeEventListener.call(document, evt, handler, capture); } }; {code} The exception text is as follows: {code} Unhandled exception at line 154, column 9 in ms-appx-web://com.something/www/cordova.js 0x800a138f - JavaScript runtime error: Unable to get property 'handleEvent' of undefined or null reference occurred {code} Any idea what could be the issue here?? was: I am developing a Cordova-based app for a Windows 10 platform. There is a button that whenever I press, cordova.js throws the following exception at this function: document.removeEventListener = function(evt, handler, capture) { var e = evt.toLowerCase(); // If unsubscribing from an event that is handled by a plugin if (typeof documentEventHandlers[e] != "undefined") { documentEventHandlers[e].unsubscribe(handler); } else { m_document_removeEventListener.call(document, evt, handler, capture); } }; The exception text is as follows: Unhandled exception at line 154, column 9 in ms-appx-web://com.something/www/cordova.js 0x800a138f - JavaScript runtime error: Unable to get property 'handleEvent' of undefined or null reference occurred Any idea what could be the issue here?? > Javasript runtime error from removeEventListener() in cordova.js > ---------------------------------------------------------------- > > Key: CB-13201 > URL: https://issues.apache.org/jira/browse/CB-13201 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10 UWP > Reporter: Mazen Debe > Assignee: Jesse MacFadyen > Priority: Major > Labels: cordova-windows, javascript, uwp, windows > > I am developing a Cordova-based app for a Windows 10 platform. There is a > button that whenever I press, cordova.js throws the following exception at > this function: > {code} > document.removeEventListener = function(evt, handler, capture) { > var e = evt.toLowerCase(); > // If unsubscribing from an event that is handled by a plugin > if (typeof documentEventHandlers[e] != "undefined") { > documentEventHandlers[e].unsubscribe(handler); > } else { > m_document_removeEventListener.call(document, evt, handler, capture); > } > }; > {code} > The exception text is as follows: > {code} > Unhandled exception at line 154, column 9 in > ms-appx-web://com.something/www/cordova.js > 0x800a138f - JavaScript runtime error: Unable to get property 'handleEvent' > of undefined or null reference occurred > {code} > Any idea what could be the issue here?? -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org