File tree Expand file tree Collapse file tree 2 files changed +3
-38
lines changed Expand file tree Collapse file tree 2 files changed +3
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
; You must not remove this notice, or any other, from this software
8
8
9
9
(ns cljs.loader
10
- (:require-macros cljs.loader)
11
10
(:require [goog.object :as gobj])
12
11
(:import [goog.module ModuleLoader]
13
12
[goog.module ModuleManager]))
53
52
(when (some? module)
54
53
(.isLoaded module))))
55
54
56
- (defn load*
55
+ (defn load
57
56
" Load a module. module-name should be a keyword matching a :modules module
58
57
definition."
59
58
([module-name]
60
- (throw (js/Error. " Invalid load call, must provide loader argument" )))
61
- ([module-name loader]
62
- (load* module-name loader nil ))
63
- ([module-name loader cb]
59
+ (load module-name nil ))
60
+ ([module-name cb]
64
61
(assert (contains? module-infos module-name)
65
62
(str " Module " module-name " does not exist" ))
66
- (assert (loaded? loader)
67
- (str " Module " loader " not fully loaded, but attempted to "
68
- " load module " module-name))
69
63
(let [mname (-> module-name name munge)]
70
64
(if-not (nil? cb)
71
65
(.execOnLoad *module-manager* mname cb)
You can’t perform that action at this time.
0 commit comments