Proxied 'lib/auth' to 'core/auth' for the iPad which can't be updated so quickly.

This commit is contained in:
Scott Erickson 2014-12-01 10:35:45 -08:00
parent f9b239ded7
commit 43ac0e8572

View file

@ -20,6 +20,7 @@ module.exports = ModuleLoader = class ModuleLoader extends CocoClass
wrapped = _.wrap window.require, (func, name, loaderPath) ->
# vendor libraries aren't actually wrapped with common.js, so short circuit those requires
return {} if _.string.startsWith(name, 'vendor/')
name = 'core/auth' if name is 'lib/auth' # proxy for iPad until it's been updated to use the new, refactored location. TODO: remove this
return func(name, loaderPath)
_.extend wrapped, window.require # for functions like 'list'
window.require = wrapped