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

Update Mustache to v2.2.1 #12034

Closed
wants to merge 223 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
8b43056
Fix the misaligned selection extension when creating a folder
Jan 17, 2015
75c0185
Set Bash files syntax highlighting
sprintr Aug 7, 2015
ab71656
Added line comment toggling only at start of code added #11953
heysupratim Nov 25, 2015
7529042
added line toggling like sublime where subsequent comment position is…
heysupratim Nov 25, 2015
e2fe451
uneven seelcted led to wrong toggle of comments , recalucated curssor…
heysupratim Nov 25, 2015
1d7e7b1
lint error of equality - lint is awesome
heysupratim Nov 25, 2015
66a11c7
removed duplicate variable declaration
heysupratim Nov 25, 2015
95c8a6f
re wrote line comment test cases
heysupratim Nov 25, 2015
a230b71
removed lint errors in EditorCommandHandler-test.js
heysupratim Nov 25, 2015
e22a55d
Merge remote-tracking branch 'upstream/master' into lineCommentBugFix
heysupratim Dec 9, 2015
2ce539f
Notification on explicit cursor/selection change
swmitra Dec 10, 2015
824b34d
Merge branch 'master' of https://github.com/adobe/brackets into swmit…
swmitra Dec 14, 2015
3ae64d6
Brackets navigation between editor context
swmitra Dec 14, 2015
9ba2304
UI for recent files
swmitra Dec 15, 2015
6c986a1
Merge branch 'master' of https://github.com/adobe/brackets into swmit…
swmitra Dec 15, 2015
a2a6636
JSLint warning fix
swmitra Dec 15, 2015
c5ef6ee
Most recently opened files navigation(MROF)
swmitra Dec 17, 2015
3598ae3
Click handler fix.
swmitra Dec 17, 2015
713a0dd
UI corruption fix.
swmitra Dec 17, 2015
aa5f73e
Dirty dot UI corruption fix.
swmitra Dec 18, 2015
4653810
Fix for duplicate overlapping popovers.
swmitra Dec 18, 2015
bec861f
Handling Left and Right arrow keys in mixed navigation (mouse+keyboard)
swmitra Dec 21, 2015
b01ca91
Remove Mouse workflow
swmitra Dec 24, 2015
d29a8fe
jasmine.sh: add some log to say which platform are support
ficristo Dec 24, 2015
c7e80a5
Fix for non working Ctrl+Click and Ctrl+Shift+Click for opening same …
swmitra Dec 24, 2015
af5ab0d
Update German translation
Dec 28, 2015
93f7ede
Update Mustache to v2.2.1
petetnt Dec 29, 2015
9b40b0e
Update React to 0.14.5 and Immutable to newest version
petetnt Dec 30, 2015
675e822
Czech translation for v1.6
dvorapa Jan 3, 2016
9820dcb
Remove a warning when reloading the app
ficristo Jan 4, 2016
73615ec
Remove .jsx from Javascript file extensions and create an jsx-mode
petetnt Jan 5, 2016
6730a31
Wrap indent-key to parentheses in .eslintrc
petetnt Jan 5, 2016
8808b4e
Null doc fix
swmitra Jan 6, 2016
bb02a5f
version bump to 1.7
abose Jan 6, 2016
72f9b1d
Merge pull request #12054 from adobe/versionBump1.7
abose Jan 6, 2016
9d56d74
Updated by ALF automation.
walfgithub Jan 6, 2016
72d35ac
MRU List duplication fix when same document is being flipped
swmitra Jan 6, 2016
1cf30cd
Fix for Hiding of all resizable divs during relaunch after setting no…
swmitra Jan 7, 2016
41e0263
Fix Flipview focus issues
petetnt Jan 7, 2016
8bc2845
Remove the pane.retainFocusAfterFlip preference
petetnt Jan 7, 2016
c92e4df
Merge pull request #12060 from petetnt/petetnt/BugFixesFor1.6Beta
swmitra Jan 8, 2016
2d79588
Updated by ALF automation.
walfgithub Jan 8, 2016
ddcbcca
Fix FlipView / WorkingSet / SplitViewSameDoc integration issues
petetnt Jan 8, 2016
989754e
added preference for Editor linecommentIndent
heysupratim Jan 11, 2016
db00c29
Merge pull request #12055 from adobe/alf_localization_release_new
nethip Jan 11, 2016
cd0ca6f
added preference handling -preference indentLineComment with default …
heysupratim Jan 11, 2016
0a4823a
Merge pull request #12065 from petetnt/petetnt/BugFixesFor1.6Beta
swmitra Jan 11, 2016
a0ba41d
made test cases for both prefernce set values fix #11953
heysupratim Jan 11, 2016
4c1c82f
removed merge conflicts and added comments
heysupratim Jan 11, 2016
2c058f1
Prevent same doc flip to avoid document corruption
swmitra Jan 11, 2016
68c7d2b
Merge branch 'release' of https://github.com/adobe/brackets into swmi…
swmitra Jan 11, 2016
953d97e
Fix for the focus issue while switching focus between inline editors …
swmitra Jan 11, 2016
31b5a96
Update translation for 1.6 release
petetnt Jan 11, 2016
70072a3
Update SHA
Jan 11, 2016
f96e864
Address comments
petetnt Jan 11, 2016
bcd64ac
Update README.md
nethip Jan 12, 2016
d72753b
Fix for same doc drag across panes in working set and same doc flip u…
swmitra Jan 12, 2016
3df0ac6
Merge pull request #12072 from adobe/swmitra/BugFixesFor1.6Beta
nethip Jan 12, 2016
a6e2f7c
Update strings.js
Jan 13, 2016
8f49241
Update strings.js
Jan 13, 2016
363887b
Update strings.js
Jan 13, 2016
9cfe948
Add period on line 741
jshen212 Jan 15, 2016
3a56332
Merge branch 'release' into master
nethip Jan 20, 2016
a6a1969
Remove dropshadow from flip-view-buttons
petetnt Jan 22, 2016
1a2dd35
Updated by ALF automation.
walfgithub Jan 22, 2016
266a58d
Korean translation update
Jan 26, 2016
eb3fdb2
Fixed Korean grammertical rule.
naradesign Jan 26, 2016
d9cd17b
Unification into existing Korean terms.
naradesign Jan 26, 2016
6beda9f
Make license year evergreen
prayagverma Jan 27, 2016
0e99e63
Make src folder files evergreen
prayagverma Jan 27, 2016
fb482ad
Make tasks folder and Gruntfile file license evergreen
prayagverma Jan 27, 2016
f6d2ea5
Make test folder license evergreen
prayagverma Jan 27, 2016
57d7ad2
Merge branch 'master' into lineCommentBugFix
heysupratim Jan 28, 2016
62f08e5
Removed styling issues and removed unwanted comments
heysupratim Jan 28, 2016
afb5249
Merge pull request #12092 from pra85/2016
abose Jan 28, 2016
eaca02a
Merge pull request #12151 from naradesign/Korean-translation
abose Jan 28, 2016
419c986
Merge pull request #12024 from ficristo/jasmine-sh-log
abose Jan 28, 2016
02a4fc0
Optimize and clean SVG icons
Jan 28, 2016
02e1f82
Use SVG in image preview backgrounds
Jan 28, 2016
318d155
Replace PNG backgrounds with SVG ones in QuickView
Jan 28, 2016
4292b2e
Merge branch 'master' into lineCommentBugFix
heysupratim Jan 28, 2016
79e2942
seperated the test cases for both preference set and unset and reset …
heysupratim Jan 28, 2016
f143690
Only update stat and clear contents when old stat is newer than curre…
petetnt Jan 30, 2016
f423158
Merge pull request #12165 from valtlait/valtlait/img-preview-bg
Jan 30, 2016
8992bb4
Merge pull request #12074 from petetnt/petetnt/fi-translation1.6
abose Feb 3, 2016
84b7b4f
Merge pull request #12046 from dvorapa/patch-1
abose Feb 3, 2016
afe944d
Adding back mouse workflow
swmitra Feb 3, 2016
c012112
Merge branch 'master' of https://github.com/adobe/brackets into swmit…
swmitra Feb 3, 2016
0dbeada
Fix for lint error
swmitra Feb 3, 2016
2067fe5
Lint error fix
swmitra Feb 3, 2016
10834fc
Few Portuguese update, spelling and punctuation correction
MauricioCarmelo Feb 3, 2016
b4255a8
Merge pull request #12076 from adobe/nethip/update_LOC_DOCUMENTATION
abose Feb 4, 2016
60848b6
Merge pull request #12085 from jshen212/patch-1
abose Feb 4, 2016
57e18b9
Merge pull request #12191 from MauricioCarmelo/master
abose Feb 4, 2016
1ba50d1
Merge branch 'master' into lineCommentBugFix
heysupratim Feb 5, 2016
c8b3b5f
split the remaining two tests , hopefully this ends the brackets line…
heysupratim Feb 5, 2016
f1b699a
Only update stat and clear contents when old stat is newer than curre…
petetnt Feb 5, 2016
c7f2e51
Update strings.js
Feb 8, 2016
448d71a
Update strings.js
Feb 8, 2016
b6af88d
Updated by ALF automation.
walfgithub Feb 8, 2016
933400a
Bump React to 0.14.7, immutable to 3.7.6
petetnt Feb 13, 2016
71d1442
Remove redundant findDomNode, align domNode variables
petetnt Feb 13, 2016
8e49f35
Merge pull request #11954 from borax12/lineCommentBugFix
abose Feb 13, 2016
b87b196
Merge pull request #12035 from petetnt/petetnt/update-react
MiguelCastillo Feb 14, 2016
8c7f548
Merge pull request #12053 from petetnt/patch-1
MiguelCastillo Feb 14, 2016
346660f
Refactoring QuickOpen extensions, separating reused code into a new f…
Feb 15, 2016
d3ca08a
fix error on live preview server creation. Else node crashes if the p…
abose Feb 19, 2016
a505026
Show an error message when trying to rename a file outside of the pro…
Feb 19, 2016
4939be1
Rename .eslintrc to .eslintrc.json
ficristo Feb 22, 2016
c6f4e4b
Add gyp and gypi file extensions to python language
ficristo Feb 22, 2016
abf8e99
Merge pull request #12175 from petetnt/petetnt/ctrl-z-hotfix
abose Feb 24, 2016
1764c2a
Merge pull request #12237 from ficristo/eslint-rename
abose Feb 24, 2016
656a0ee
Merge pull request #12238 from ficristo/language-gyp
abose Feb 24, 2016
d22546b
Merge pull request #12195 from petetnt/petetnt/ctrl-z-hotfix-release
abose Feb 24, 2016
2acaad2
added one more shortcut ctrl+shift+1 for toggle panels which will be…
Feb 25, 2016
06b0541
Merge pull request #12243 from adobe/abose/NoDistractionShortcut
swmitra Feb 25, 2016
eb549bf
Targeting PR#12145 to release
swmitra Feb 25, 2016
75d144a
Merge pull request #12246 from adobe/swmitra/ReleaseFixBranch
abose Feb 25, 2016
8d76707
Merge pull request #12068 from adobe/marcel/german-translation
abose Feb 25, 2016
b861408
Linted CSS
AllThingsSmitty Feb 27, 2016
5741f0a
Merge pull request #12138 from adobe/alf_localization_release_new
nethip Mar 8, 2016
1660547
Update README.md
abose Mar 22, 2016
c901998
Add @mfatekho to CLA exceptions.
busykai Mar 22, 2016
d94892f
Updated First Steps in PT-BR
nbfontana Mar 29, 2016
7fa389e
Add "gradle" to Groovy file extensions
petetnt Mar 29, 2016
6ce2128
Reverting to prior font-weight
AllThingsSmitty Mar 30, 2016
beaca9e
Merge pull request #12321 from adobe/kai/cla-addition
busykai Mar 30, 2016
f393bfe
Merge pull request #12333 from petetnt/patch-1
abose Mar 31, 2016
18c2e0b
changing to switch case
Mar 31, 2016
b05d263
Merge pull request #12234 from adobe/marcel/rename-outside-project-fail
abose Mar 31, 2016
a533611
Merge pull request #12230 from adobe/abose/nodeSockErr
abose Mar 31, 2016
7cf3aa4
Merge pull request #12081 from Denisov21/patch-40
abose Mar 31, 2016
e7f9fe2
Grammar corrections
nbfontana Mar 31, 2016
dc44b8a
The "o Brackets" commit
nbfontana Mar 31, 2016
7f87bb4
Merge pull request #12164 from valtlait/valtlait/svg-images
abose Apr 1, 2016
3ccc3c2
Grammar corrections II
nbfontana Apr 1, 2016
ec4665e
Update CodeMirror
Jan 30, 2016
8675647
Update expected range when pressing { on a selection
Jan 30, 2016
67cfae5
Merge pull request #12334 from nbfontana/samples-pt-br
abose Apr 2, 2016
5bee800
Merge pull request #12250 from AllThingsSmitty/master
abose Apr 2, 2016
4143028
Merge pull request #12124 from petetnt/petetnt/flip-view-shadow
abose Apr 2, 2016
8f304a8
Update index.html
Apr 2, 2016
f1bf103
Merge pull request #12344 from JoshLWScott/patch-1
MiguelCastillo Apr 2, 2016
39fdee0
Merge pull request #12177 from adobe/marcel/cm-update
MiguelCastillo Apr 4, 2016
55d61d3
Fix of not picking file modifications.
mfatekho Apr 8, 2016
876fe89
Added Bulgarian translation.
Apr 11, 2016
6b6d290
Innapropriate copyright fixed.
mfatekho Apr 15, 2016
46d842c
Update Polish translation (checked and tested)
Apr 19, 2016
1bc80a7
With latest CEF, quick open is not showing the results as opacity was…
nethip Apr 19, 2016
9bf098d
Change GOTO_DEFINITION string
Apr 20, 2016
51582db
Merge pull request #12372 from jurkian/master
abose Apr 22, 2016
bfac5ee
ImagePreview URL protocol validation
swmitra Apr 27, 2016
6803312
Handling case insensitive lookup of protocol
swmitra Apr 27, 2016
bea5f1c
Minor refactoring
mfatekho Apr 27, 2016
870f633
Homepage url validation for extension listing
swmitra Apr 28, 2016
b0067fe
Indention fixed
mfatekho Apr 28, 2016
4bf7e85
Added unit testing for issue #8208
Apr 29, 2016
7d4c87d
Merge remote-tracking branch 'upstream/master' into selection-extensi…
Apr 30, 2016
47ec521
Merge pull request #10402 from MarcelGerber/selection-extension-creat…
Apr 30, 2016
96806b1
Fix for 3296: add deprecation warning for global Mustache
ficristo Aug 22, 2015
93a30a2
Merge pull request #11616 from ficristo/fix-3296
May 1, 2016
a60153b
Merge pull request #12048 from ficristo/fix-warning-less
May 1, 2016
7dcc5bd
Require PathUtils instead of using the global one
ficristo Feb 5, 2016
81375bb
Merge pull request #12203 from ficristo/require-path-utils
May 2, 2016
4d75163
Fix CSSUtils detection of @import urls
May 2, 2016
25df24c
Fixed indentation, copyright notice, and JsDoc
May 2, 2016
76f3f99
Merge pull request #12393 from adobe/marcel/cssutils-fix-import-url
nethip May 2, 2016
f418408
In CSSUtils, detect when in an @ rule correctly
May 2, 2016
36983a2
Update a couple of dependencies in package.json at the root
ficristo Jan 7, 2016
b82c987
Merge pull request #12401 from adobe/release
swmitra May 4, 2016
7897550
Merge pull request #12357 from lyubomirv/bg
abose May 4, 2016
a78983d
Merge pull request #12353 from mfatekho/fix-win-filewatchers
bchintx May 4, 2016
cd56e7f
Fix for documents refCount issue
swmitra May 5, 2016
1a259bb
Missing length
swmitra May 5, 2016
d0efb0c
Merge pull request #11558 from sprintr/bash-startup-files-highlight
nethip May 10, 2016
34a6e79
Merge pull request #12386 from adobe/swmitra/imagePreview
nethip May 11, 2016
6b0abe8
Merge branch 'master' into prashant/cef-upgrade-latest
nethip May 11, 2016
22319cd
Reverting the windows scroll fix put in by Marcel Gerber via https://…
nethip May 11, 2016
d0d78bf
Merge branch 'master' of https://github.com/adobe/brackets into swmit…
swmitra May 12, 2016
c66f729
Fix animation mixin
May 12, 2016
727eaaf
Add split view and override shorcuts
swmitra May 13, 2016
05f1152
Merge branch 'master' of https://github.com/adobe/brackets into swmit…
swmitra May 13, 2016
1cb8b6f
Update fsevents_win.cpp
swmitra May 13, 2016
b71343c
Update fsevents_win.cpp
swmitra May 13, 2016
6a82522
Remove unwanted changes
swmitra May 13, 2016
a60e724
Create detached link element only once
swmitra May 13, 2016
adb414d
Merge pull request #12389 from adobe/swmitra/HomePageEntryValidation
nethip May 13, 2016
ff4707f
Merge pull request #12415 from adobe/prashant/cef-upgrade-latest
swmitra May 13, 2016
a2163d6
Merge pull request #12397 from adobe/marcel/cssutils-detect-import
May 13, 2016
4eb3071
Merge pull request #12052 from petetnt/petetnt/jsx-mode
MiguelCastillo May 13, 2016
4c4b24f
Fixed htmlmixed highlighting. Add text/{babel,jsx} to the jsx mode
ficristo May 14, 2016
00517d0
Merge pull request #12422 from ficristo/htmlmixed-modes
MiguelCastillo May 15, 2016
54c646a
Code cleanup, UI fixes and handling split scenario
swmitra May 16, 2016
347364f
Adding keyboard config making strings translatable
swmitra May 16, 2016
7990632
Doc ref count fix
swmitra May 17, 2016
681069f
Merge pull request #12390 from PatrickDallarosa/master
nethip May 17, 2016
ad135ff
Added base name conflict handling like workingset
swmitra May 17, 2016
fd158d4
Handle Asych filesystem sync
swmitra May 18, 2016
b21ce25
Putting back missing ckeck and add to pane views
swmitra May 18, 2016
9891ac3
Added async handling for move next/prev
swmitra May 18, 2016
0e7d6bc
Add Preference to enable/disable mrof navigation
swmitra May 18, 2016
20d40ba
Changed pref string
swmitra May 19, 2016
7d320ba
Changed command names(replaced '.' with '-')
swmitra May 19, 2016
8c5c68b
Resetting MROF list on prefs change
swmitra May 19, 2016
0c8b2cd
Update Document.js
nethip May 19, 2016
2a4b491
Merge pull request #12405 from adobe/swmitra/RefCountFix
nethip May 19, 2016
5301545
Fix for workingset sync and event hldr registration
swmitra May 19, 2016
a9c4b8c
Fix ProjectModel test 'adjusts the selection if a parent folder is re…
May 19, 2016
ce12a86
Fix Extension Manager test failures
May 19, 2016
bc00259
Fix CSS Code Hints test case 'should show color swatches for backgrou…
May 19, 2016
c8a403b
Merge pull request #12437 from adobe/marcel/test-fixes
nethip May 20, 2016
9fdd153
Fix for EditorManager(1) and MainViewManager(4) test failures
swmitra May 20, 2016
6483f0f
Addressing review comments
swmitra May 20, 2016
dc461c8
Merge pull request #12214 from jacobsone/refactoring
May 21, 2016
b7e0a22
Fixup on copyright format
May 21, 2016
c23147e
Merge pull request #12059 from ficristo/update-dependencies
May 21, 2016
0f5aa28
Merge pull request #12439 from adobe/swmitra/AddPaneTestFix
nethip May 23, 2016
59b33be
Merge pull request #12012 from adobe/swmitra/NavigationHistory
nethip May 23, 2016
f466dba
Bumping version Number to 1.8
nethip May 23, 2016
8093791
Merge pull request #12446 from adobe/prashant/VersionUpdate
nethip May 23, 2016
150f077
Merge commit 'refs/pull/12034/head' of https://github.com/adobe/brack…
May 25, 2016
9cccec0
Update Mustache - Merge conflicts
May 25, 2016
7d9b238
Fix for Mustache's issue
May 25, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dirty dot UI corruption fix.
Minor refactoring
  • Loading branch information
swmitra committed Dec 18, 2015
commit aa5f73e8d84abfbd81e93d75e5a34f80e40fe7ce
127 changes: 73 additions & 54 deletions src/extensions/default/NavigationAndHistory/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
* Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -53,11 +53,8 @@ define(function (require, exports, module) {
NEXT_IN_RECENT_FILES = "next.recent.files",
PREV_IN_RECENT_FILES = "prev.recent.files";

var htmlTemplate = require("text!html/recentfiles-template.html");

var $currentContext,
hideTimeoutVar,
openFileTimeoutVar;
var htmlTemplate = require("text!html/recentfiles-template.html"),
dirtyDotTemplate = "<div class='file-status-icon dirty' style='position: absolute;margin-left: -2px;'></div>";

// Delay in ms for hide timer when open recent files dialog shown from keyborad only commands
var HIDE_TIMEOUT_DELAY = 1500,
@@ -69,9 +66,15 @@ define(function (require, exports, module) {
* @type {Array.<Object>}
*/
var _mrofList = [],
$mrofContainer,
$mrofContainer = null,
_activePaneId = null;


var $currentContext,
hideTimeoutVar,
openFileTimeoutVar,
activeEditor;

/**
* Opens a full editor for the given context
* @private
@@ -81,8 +84,9 @@ define(function (require, exports, module) {
function _openEditorForContext(contextData) {
return CommandManager.execute(Commands.FILE_OPEN, {fullPath: contextData.path,
paneId: contextData.paneId }).done(function () {
EditorManager.getActiveEditor().setCursorPos(contextData.cursor);
EditorManager.getActiveEditor().centerOnCursor();
activeEditor = EditorManager.getActiveEditor();
activeEditor.setCursorPos(contextData.cursor);
activeEditor.centerOnCursor();
});
}

@@ -114,7 +118,9 @@ define(function (require, exports, module) {
return (docIfOpen && docIfOpen.isDirty);
}

/** Returns a 'context' object for getting/setting project-specific preferences */
/**
* Returns a 'context' object for getting/setting project-specific preferences
*/
function _getPrefsContext() {
var projectRoot = ProjectManager.getProjectRoot();
return { location : { scope: "user", layer: "project", layerID: projectRoot && projectRoot.fullPath } };
@@ -156,13 +162,51 @@ define(function (require, exports, module) {
$mrofContainer.remove();
$mrofContainer = null;
$currentContext = null;
if (EditorManager.getActiveEditor()) {
EditorManager.getActiveEditor().focus();
activeEditor = EditorManager.getActiveEditor();
if (activeEditor) {
activeEditor.focus();
}
hideTimeoutVar = null;
}
}

function _createFileEntries($mrofList) {
var data, fileEntry, $link, $newItem;
// Iterate over the MROF list and create the pop over UI items
$.each(_mrofList, function (index, value) {

data = {fullPath: value.file,
name: FileUtils.getBaseName(value.file),
isFile: true};

fileEntry = FileSystem.getFileForPath(value.file);

// Create new list item with a link
$link = $("<a href='#' class='mroitem'></a>").html(ViewUtils.getFileEntryDisplay({name: FileUtils.getBaseName(value.file)}));

// Use the file icon providers
WorkingSetView.useIconProviders(data, $link);

$newItem = $("<li></li>").append($link);

$newItem.data("path", value.file);
$newItem.data("paneId", value.paneId);
$newItem.data("cursor", value.cursor);
$newItem.data("file", fileEntry);
$newItem.attr("title", value.file);

// Use the class providers(git e.t.c)
WorkingSetView.useClassProviders(data, $newItem);

// If a file is dirty , mark it in the list
if (_isOpenAndDirty(fileEntry)) {
$(dirtyDotTemplate).prependTo($newItem);
}

$mrofList.append($newItem);
});
}

/**
* Shows the current MROF list
* @private
@@ -177,22 +221,23 @@ define(function (require, exports, module) {
* @private
*/
function _onFocus(event) {
var $scope = $(event.target).parent();
$("#mrof-container > #mrof-list > li.highlight").removeClass("highlight");
$(event.target).parent().addClass("highlight");
$mrofContainer.find("#recent-file-path").text($(event.target).parent().data("path"));
$currentContext = $(event.target).parent();
$mrofContainer.find("#recent-file-path").text($scope.data("path"));
$currentContext = $scope;
}

/**
* Click handler for the link in list item
* @private
*/
function _onClick(event) {
var $context = $(event.delegateTarget).parent();
var $scope = $(event.delegateTarget).parent();
_openEditorForContext({
path: $context.data("path"),
paneId: $context.data("paneId"),
cursor: $context.data("cursor")
path: $scope.data("path"),
paneId: $scope.data("paneId"),
cursor: $scope.data("cursor")
});
}

@@ -211,44 +256,18 @@ define(function (require, exports, module) {

_syncWithFileSystem();

// Iterate over the MROF list and create the pop over UI items
$.each(_mrofList, function (index, value) {

data = {fullPath: value.file,
name: FileUtils.getBaseName(value.file),
isFile: true};

fileEntry = FileSystem.getFileForPath(value.file);

// Create new list item with a link
$link = $("<a href='#' class='mroitem'></a>").html(ViewUtils.getFileEntryDisplay({name: FileUtils.getBaseName(value.file)}));

// Use the file icon providers
WorkingSetView.useIconProviders(data, $link);

$newItem = $("<li></li>").append($link);

$newItem.data("path", value.file);
$newItem.data("paneId", value.paneId);
$newItem.data("cursor", value.cursor);
$newItem.data("file", fileEntry);
$newItem.attr("title", value.file);

// Use the class providers(git e.t.c)
WorkingSetView.useClassProviders(data, $newItem);

if (_isOpenAndDirty(fileEntry)) {
$("<div class='file-status-icon dirty' style='position: static;float:left;margin-left: -5px;'></div>").prependTo($newItem);
}

$mrofList.append($newItem);
});
_createFileEntries($mrofList);

var $fileLinks = $("#mrof-container > #mrof-list > li > a.mroitem");
// Handlers for mouse events on the list items
$("#mrof-container > #mrof-list > li > a.mroitem").on("focus", _onFocus);
$("#mrof-container > #mrof-list > li > a.mroitem").on("click", _onClick);
$("#mrof-container > #mrof-list > li > a.mroitem").on("select", _onClick);
$("#mrof-container > #mrof-list > li > a.mroitem").first().trigger("focus");
$fileLinks.on("focus", _onFocus);
$fileLinks.on("click", _onClick);
$fileLinks.on("select", _onClick);

// Put focus on the Most recent file link in the list
$fileLinks.first().trigger("focus");

// Attach clear list handler to the 'Clear All' button
$("#mrof-container > .footer > div#clear-mrof-list").on("click", _clearMROFList);
}