lib/template.js
function(){
	var i = this._plugins.length,
		num = i,
		_self = this,
		key, value,t,plugin;
	while(i--){
		key = this.language.plugin(this._plugins[i]);
		
		if(typeof allPlugins[key] !== "undefined"){
			plugin = allPlugins[key];
			if(BrowserEnvironment && !plugin.browserFriendly) Utilities.warning(this,["The following plugin will not work for the browser: ", _self.language.others(plugin.pluginName)]);
			if(typeof plugin.onTemplateCreate !== "undefined") plugin.onTemplateCreate(this,
				function(){
					num--;
					if(typeof plugin.willHandle !== "undefined" && plugin.handleToken !== "undefined"){
						var handle = plugin.willHandle(_self),
							t = handle.length;
						while(t--){
							_self._tagDelegation[handle[t]] = plugin.pluginName;
						}
						if(num === 0){
							num = -1;
							_startCreate.call(_self);
						}
					}
				});
		}
		else {
			_grabPlugin.call(this,key,function(){
				num--;
				if(num === 0){
					num = -1;
					_startCreate.call(_self);
				}
			});
		}
	}
}
function(){
	var i = this._plugins.length,
		num = i,
		_self = this,
		key, value,t,plugin;
	while(i--){
		key = this.language.plugin(this._plugins[i]);
		
		if(typeof allPlugins[key] !== "undefined"){
			plugin = allPlugins[key];
			if(BrowserEnvironment && !plugin.browserFriendly) Utilities.warning(this,["The following plugin will not work for the browser: ", _self.language.others(plugin.pluginName)]);
			if(typeof plugin.onTemplateCreate !== "undefined") plugin.onTemplateCreate(this,
				function(){
					num--;
					if(typeof plugin.willHandle !== "undefined" && plugin.handleToken !== "undefined"){
						var handle = plugin.willHandle(_self),
							t = handle.length;
						while(t--){
							_self._tagDelegation[handle[t]] = plugin.pluginName;
						}
						if(num === 0){
							num = -1;
							_startCreate.call(_self);
						}
					}
				});
		}
		else {
			_grabPlugin.call(this,key,function(){
				num--;
				if(num === 0){
					num = -1;
					_startCreate.call(_self);
				}
			});
		}
	}
}
function ( ) { var i = this . _plugins . length , num = i , _self = this , key , value , t , plugin ; while ( i -- ) { key = this . language . plugin ( this . _plugins [ i ] ) ; if ( typeof allPlugins [ key ] !== "undefined" ) { plugin = allPlugins [ key ] ; if ( BrowserEnvironment && ! plugin . browserFriendly ) Utilities . warning ( this , [ "The following plugin will not work for the browser: " , _self . language . others ( plugin . pluginName ) ] ) ; if ( typeof plugin . onTemplateCreate !== "undefined" ) plugin . onTemplateCreate ( this , function ( ) { num -- ; if ( typeof plugin . willHandle !== "undefined" && plugin . handleToken !== "undefined" ) { var handle = plugin . willHandle ( _self ) , t = handle . length ; while ( t -- ) { _self . _tagDelegation [ handle [ t ] ] = plugin . pluginName ; } if ( num === 0 ) { num = - 1 ; _startCreate . call ( _self ) ; } } } ) ; } else { _grabPlugin . call ( this , key , function ( ) { num -- ; if ( num === 0 ) { num = - 1 ; _startCreate . call ( _self ) ; } } ) ; } } }
--Noodles--
name:_registerPlugins - private method
description: registers the plugins of the Template Class
-- Noodles -- name : _registerPlugins - private method description : registers the plugins of the Template Class