Merge branch 'master' into glenn/file-system

This commit is contained in:
Glenn Ruehle committed 2013-10-04 16:07:51 -07:00
commit f451101704
170 files changed
+5347 -6186

No files matched your search

@@ -131,9 +131,9 @@ define(function (require, exports, module) {
var cm = this.editor._codeMirror;
if (cursor) {
return cm.getTokenAt(cursor, true);
return cm.getTokenAt(cursor);
} else {
return cm.getTokenAt(this.getCursor(), true);
return cm.getTokenAt(this.getCursor());
}
};
@@ -85,8 +85,11 @@ define(function (require, exports, module) {
* @param {Array.<Object>} hints - the list of hints to format
* @param {string} query - querystring used for highlighting matched
* poritions of each hint
* @return {Array.<jQuery.Object>} - array of hints formatted as jQuery
* objects
* @return {jQuery.Deferred|{
* hints: Array.<string|jQueryObject>,
* match: string,
* selectInitial: boolean,
* handleWideResults: boolean}}
*/
function formatHints(hints, query) {
return hints.map(function (token) {