sgvizler.loader Class
Loads dependencies for external functions.
Dependencies:
- sgvizler.util
- sgvizler.logger
- sgvizler.registry
- jQuery
- google.load
Methods
loadDependencies
(
jQuery.Promise
protected
-
functions
Load the dependencies of all the given function
names---as specified in sgvizler.registry
.
Parameters:
Returns:
jQuery.Promise:
A promise object which resolves the loading of all function dependencies.
Example:
loadDependencies('google.visualization.Map');
returns deferred which will load the dependencies
for the google.visualization.Map
function as
specified by sgvizler.registry
.
loadGMapScript
()
jQuery.Promise
private
Returns:
jQuery.Promise:
Promise object which resolves the loading of google.maps.
loadGVizScript
(
jQuery.Promise
private
-
[packages]
-
[loadLib]
Parameters:
Returns:
jQuery.Promise:
Promise object which resolves the loading of the given packages/library.
Properties
loaders
Object
private
Contains a list of dependency loaders: function name--deferred pairs. Keeps track of dependencies which have already been asked for (but possibly not been loaded yet).