Skip to content

Commit

Permalink
Fixes issue adobe#1886 by getting the saved Document passed with the …
Browse files Browse the repository at this point in the history
…jQuery event
  • Loading branch information
JakeStoeffler committed Oct 20, 2012
1 parent ce4b535 commit 0ec90aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ define(function LiveDevelopment(require, exports, module) {
}

/** Triggered by a document saved from the DocumentManager */
function _onDocumentSaved() {
var doc = _getCurrentDocument();
function _onDocumentSaved(event, data) {
var doc = data || _getCurrentDocument(); // use Document passed in with jQuery event if available

if (doc && Inspector.connected() && _classForDocument(doc) !== CSSDocument) {
if (agents.network && agents.network.wasURLRequested(doc.url)) {
Expand Down

0 comments on commit 0ec90aa

Please sign in to comment.