default ext handler just reads the file's contents

This commit is contained in:
Chris Wanstrath 2011-08-28 00:48:52 -07:00
parent ac773daff6
commit b2f2eb4cb7
2 changed files with 3 additions and 3 deletions

View File

@ -14,6 +14,7 @@ __jsc__.evalJSString_withScriptPath code, path
console.log 'require tests:'
console.log require.resolve 'underscore'
console.log require.resolve 'osx'
console.log require.resolve 'tabs/tabs'
console.log require.resolve 'ace/requirejs/text!ace/css/editor.css'
console.log require.resolve 'ace/keyboard/keybinding'
console.log '--------------'

View File

@ -14,11 +14,11 @@ require = (file) ->
return __modules[file] if __modules[file]?
__modules[file] = {} # Fix for circular references
__modules[file] = exts[ext]? file
__modules[file] = (exts[ext] or (file) -> __read file) file
__modules[file]
defines = []
define = (cb) ->
define = (cb) ->
defines.push ->
exports = {}
module = exports: exports
@ -26,7 +26,6 @@ define = (cb) ->
exports
exts =
css: (file) -> __read file
js: (file) ->
code = __read file
__jsc__.evalJSString_withScriptPath code, file