MCPcopy Index your code
hub / github.com/CodeboxIDE/codebox / getHandlers

Function getHandlers

client/core/files.js:125–134  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

123
124 // Get handler for a file
125 var getHandlers = function(file) {
126 return _.chain(handlers)
127 .filter(function(handler) {
128 return userSettings.get(handler.id, true) && handler.valid(file);
129 })
130 .sortBy(function(handler) {
131 return handler.position || 10;
132 })
133 .value();
134 };
135
136 // get fallback handlers for a file
137 var getFallbacks = function(file) {

Callers 1

openFileFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected