/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_Loader({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"

Files

Simple class to help load JavaScript files on demand

\n
Defined By

Methods

Ext.Loader
view source
( filename, callback ) : Elementprivate
Creates and returns a script tag, but does not place it into the document. ...

Creates and returns a script tag, but does not place it into the document. If a callback function\nis passed, this is called when the script has been loaded

\n

Parameters

  • filename : String

    The name of the file to create a script tag for

    \n
  • callback : Function

    Optional callback, which is called when the script has been loaded

    \n

Returns

  • Element

    The new script ta

    \n
Ext.Loader
view source
( fileList, callback, scope, preserveOrder )
Loads a given set of .js files. ...

Loads a given set of .js files. Calls the callback function when all files have been loaded\nSet preserveOrder to true to ensure non-parallel loading of files if load order is important

\n

Parameters

  • fileList : Array

    Array of all files to load

    \n
  • callback : Function

    Callback to call after all files have been loaded

    \n
  • scope : Object

    The scope to call the callback in

    \n
  • preserveOrder : Boolean

    True to make files load in serial, one after the other (defaults to false)

    \n
Ext.Loader
view source
( index )
Loads a particular file from the fileList by index. ...

Loads a particular file from the fileList by index. This is used when preserving order

\n

Parameters

  • index : Object
    \n
Callback function which is called after each file has been loaded. ...

Callback function which is called after each file has been loaded. This calls the callback\npassed to load once the final file in the fileList has been loaded

\n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"Loader.html#Ext-Loader","filename":"Loader.js"}],"linenr":1,"members":{"property":[],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.Loader","meta":{"private":true},"name":"buildScriptTag","id":"method-buildScriptTag"},{"tagname":"method","owner":"Ext.Loader","meta":{},"name":"load","id":"method-load"},{"tagname":"method","owner":"Ext.Loader","meta":{},"name":"loadFileIndex","id":"method-loadFileIndex"},{"tagname":"method","owner":"Ext.Loader","meta":{},"name":"onFileLoaded","id":"method-onFileLoaded"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.Loader","singleton":true,"override":null,"inheritdoc":null,"id":"class-Ext.Loader","mixins":[],"mixedInto":[]});