[ https://issues.apache.org/jira/browse/COUCHDB-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196850#comment-14196850 ]
Michelle Phung commented on COUCHDB-2434: ----------------------------------------- it's line 135 in: fauxton/app/addons/documents/views.js, as shown here: https://github.com/apache/couchdb-fauxton/pull/128 currently the code is: FauxtonAPI.Events.off('database:delete', this.showDeleteDatabase); and from backbone.js: http://backbonejs.org/docs/backbone.html#section-21 the prototype is: off: function(name, callback, context) {} where 'If context is null, removes all callbacks with that function.' I think this is what's happening: the cleanup function is being called, removing all the callbacks from database:delete for that database. There are some cases where ghost views are being generated, and then cleaned up. When a user goes to click on database:delete (via the cog-dropdown-menu), nothing happens because all the triggers are off. > No context passed when turning off delete database event listener > ----------------------------------------------------------------- > > Key: COUCHDB-2434 > URL: https://issues.apache.org/jira/browse/COUCHDB-2434 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: Fauxton > Reporter: Michelle Phung > Priority: Minor > > No context passed when turning off delete database event listener. When > multiple views are created, all triggers for delete database are turned off, > from that point on, even if you need it to be on after. -- This message was sent by Atlassian JIRA (v6.3.4#6332)