Skip to content

Instantly share code, notes, and snippets.

@dangoor
Created August 27, 2013 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangoor/6357058 to your computer and use it in GitHub Desktop.
Save dangoor/6357058 to your computer and use it in GitHub Desktop.
Conflict in LiveDevelopment.js
/**
* @private
* DocumentManager currentDocumentChange event handler.
*/
function _onDocumentChange() {
var doc = _getCurrentDocument();
if (!doc) {
return;
}
if (Inspector.connected()) {
hideHighlight();
<<<<<<< HEAD
// close the current session and begin a new session if the current
// document changes to an HTML document that was not loaded yet
var wasRequested = agents.network && agents.network.wasURLRequested(doc.url),
isHTML = exports.config.experimental || _isHtmlFileExt(doc.extension);
if (!wasRequested && isHTML) {
// TODO (jasonsanjose): optimize this by reusing the same connection
// no need to fully teardown.
close().done(open);
}
=======
promise
.fail(close)
.done(function () {
if (_docIsOutOfSync(doc)) {
status = STATUS_OUT_OF_SYNC;
}
_setStatus(status);
});
>>>>>>> adobe-randy/LiveHTML-icon
}
}
@dangoor
Copy link
Author

dangoor commented Aug 27, 2013

Here's the diff that changed this in master:

adobe/brackets@1f6b5aa#L3L1023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment