Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
minor event handler namespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsanjose committed Aug 28, 2013
1 parent d706cf2 commit 373497a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ define(function LiveDevelopment(require, exports, module) {
if (_relatedDocuments) {
_relatedDocuments.forEach(function (liveDoc) {
liveDoc.close();
$(liveDoc).off("deleted", _handleRelatedDocumentDeleted);
$(liveDoc).off(".livedev");
});

_relatedDocuments = undefined;
Expand Down Expand Up @@ -289,7 +289,7 @@ define(function LiveDevelopment(require, exports, module) {
_relatedDocuments.push(liveDoc);
_server.add(liveDoc);

$(liveDoc).on("deleted", _handleRelatedDocumentDeleted);
$(liveDoc).on("deleted.livedev", _handleRelatedDocumentDeleted);
}
}
stylesheetDeferred.resolve();
Expand Down Expand Up @@ -534,8 +534,8 @@ define(function LiveDevelopment(require, exports, module) {
deferred = new $.Deferred(),
connected = Inspector.connected();

$(Inspector.Page).off("frameNavigated.livedev");
$(Inspector).off("disconnect.livedev");
$(Inspector.Page).off(".livedev");
$(Inspector).off(".livedev");

unloadAgents();

Expand Down

0 comments on commit 373497a

Please sign in to comment.