Created
October 2, 2012 23:18
-
-
Save nonken/3823920 to your computer and use it in GitHub Desktop.
Ace selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor.getSession().addMarker(new Range(0,0,0,10),"ace_active_line","background"); | |
======== | |
Uncaught TypeError: Object function (deps, callback, relModuleMap) { | |
var moduleName, fullName, moduleMap; | |
if (typeof deps === "string") { | |
if (isFunction(callback)) { | |
//Invalid call | |
return req.onError(makeError("requireargs", "Invalid require call")); | |
} | |
//Synchronous access to one module. If require.get is | |
//available (as in the Node adapter), prefer that. | |
//In this case deps is the moduleName and callback is | |
//the relModuleMap | |
if (req.get) { | |
return req.get(context, deps, callback); | |
} | |
//Just return the module wanted. In this scenario, the | |
//second arg (if passed) is just the relModuleMap. | |
moduleName = deps; | |
relModuleMap = callback; | |
//Normalize module name, if it contains . or .. | |
moduleMap = makeModuleMap(moduleName, relModuleMap); | |
fullName = moduleMap.fullName; | |
if (!(fullName in defined)) { | |
return req.onError(makeError("notloaded", "Module name '" + | |
moduleMap.fullName + | |
"' has not been loaded yet for context: " + | |
contextName)); | |
} | |
return defined[fullName]; | |
} | |
//Call main but only if there are dependencies or | |
//a callback to call. | |
if (deps && deps.length || callback) { | |
main(null, deps, callback, relModuleMap); | |
} | |
//If the require call does not trigger anything new to load, | |
//then resume the dependency processing. | |
if (!context.requireWait) { | |
while (!context.scriptCount && context.paused.length) { | |
resume(); | |
} | |
} | |
return context.require; | |
} has no method 'clipRows' ace.js:1 | |
update ace.js:1 | |
$renderChanges ace.js:1 | |
schedule ace.js:1 | |
i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment