TEMPLATE_STRING_NO_ELEMENT:"Error in soma.template, a string template requirement a second parameter: an element target - soma.template.create('string', element)",
TEMPLATE_NO_PARAM:"Error in soma.template, a template requires at least 1 parameter - soma.template.create(element)"
};
soma.template.errors={
TEMPLATE_STRING_NO_ELEMENT:'Error in soma.template, a string template requirement a second parameter: an element target - soma.template.create(\'string\', element)',
TEMPLATE_NO_PARAM:'Error in soma.template, a template requires at least 1 parameter - soma.template.create(element)'
MAPPING_BAD_PROP:"[Error infuse.Injector.mapClass/mapValue] the first parameter is invalid, a string is expected",
MAPPING_BAD_VALUE:"[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, it can't null or undefined, with property: ",
MAPPING_BAD_CLASS:"[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, a function is expected, with property: ",
MAPPING_BAD_SINGLETON:"[Error infuse.Injector.mapClass] the third parameter is invalid, a boolean is expected, with property: ",
MAPPING_ALREADY_EXISTS:"[Error infuse.Injector.mapClass/mapValue] this mapping already exists, with property: ",
CREATE_INSTANCE_INVALID_PARAM:"[Error infuse.Injector.createInstance] invalid parameter, a function is expected",
NO_MAPPING_FOUND:"[Error infuse.Injector.getInstance] no mapping found",
INJECT_INSTANCE_IN_ITSELF_PROPERTY:"[Error infuse.Injector.getInjectedValue] A matching property has been found in the target, you can't inject an instance in itself",
INJECT_INSTANCE_IN_ITSELF_CONSTRUCTOR:"[Error infuse.Injector.getInjectedValue] A matching constructor parameter has been found in the target, you can't inject an instance in itself"
MAPPING_BAD_PROP:'[Error infuse.Injector.mapClass/mapValue] the first parameter is invalid, a string is expected',
MAPPING_BAD_VALUE:'[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, it can\'t null or undefined, with property: ',
MAPPING_BAD_CLASS:'[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, a function is expected, with property: ',
MAPPING_BAD_SINGLETON:'[Error infuse.Injector.mapClass] the third parameter is invalid, a boolean is expected, with property: ',
MAPPING_ALREADY_EXISTS:'[Error infuse.Injector.mapClass/mapValue] this mapping already exists, with property: ',
CREATE_INSTANCE_INVALID_PARAM:'[Error infuse.Injector.createInstance] invalid parameter, a function is expected',
NO_MAPPING_FOUND:'[Error infuse.Injector.getInstance] no mapping found',
INJECT_INSTANCE_IN_ITSELF_PROPERTY:'[Error infuse.Injector.getInjectedValue] A matching property has been found in the target, you can\'t inject an instance in itself',
INJECT_INSTANCE_IN_ITSELF_CONSTRUCTOR:'[Error infuse.Injector.getInjectedValue] A matching constructor parameter has been found in the target, you can\'t inject an instance in itself'
};
varMappingVO=function(prop,value,cl,singleton){
...
...
@@ -58,7 +59,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -819,19 +879,21 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
getAll:function(){
varcopy={};
for(varcmdinthis.list){
if(this.list.hasOwnProperty(cmd)){
copy[cmd]=this.list[cmd];
}
}
returncopy;
},
add:function(commandName,command){
if(typeofcommandName!=='string'){
thrownewError("Error adding a command, the first parameter must be a string.");
thrownewError('Error adding a command, the first parameter must be a string.');
}
if(typeofcommand!=='function'){
thrownewError("Error adding a command with the name \""+command+"\", the second parameter must be a function, and must contain an \"execute\" public method.");
thrownewError('Error adding a command with the name "'+command+'", the second parameter must be a function, and must contain an "execute" public method.');
}
if(this.has(commandName)){
thrownewError("Error adding a command with the name: \""+commandName+"\", already registered.");
thrownewError('Error adding a command with the name: "'+commandName+'", already registered.');
}
this.list[commandName]=command;
this.addInterceptor(commandName);
...
...
@@ -860,16 +922,17 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
TEMPLATE_STRING_NO_ELEMENT:"Error in soma.template, a string template requirement a second parameter: an element target - soma.template.create('string', element)",
TEMPLATE_NO_PARAM:"Error in soma.template, a template requires at least 1 parameter - soma.template.create(element)"
};
soma.template.errors={
TEMPLATE_STRING_NO_ELEMENT:'Error in soma.template, a string template requirement a second parameter: an element target - soma.template.create(\'string\', element)',
TEMPLATE_NO_PARAM:'Error in soma.template, a template requires at least 1 parameter - soma.template.create(element)'
MAPPING_BAD_PROP:"[Error infuse.Injector.mapClass/mapValue] the first parameter is invalid, a string is expected",
MAPPING_BAD_VALUE:"[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, it can't null or undefined, with property: ",
MAPPING_BAD_CLASS:"[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, a function is expected, with property: ",
MAPPING_BAD_SINGLETON:"[Error infuse.Injector.mapClass] the third parameter is invalid, a boolean is expected, with property: ",
MAPPING_ALREADY_EXISTS:"[Error infuse.Injector.mapClass/mapValue] this mapping already exists, with property: ",
CREATE_INSTANCE_INVALID_PARAM:"[Error infuse.Injector.createInstance] invalid parameter, a function is expected",
NO_MAPPING_FOUND:"[Error infuse.Injector.getInstance] no mapping found",
INJECT_INSTANCE_IN_ITSELF_PROPERTY:"[Error infuse.Injector.getInjectedValue] A matching property has been found in the target, you can't inject an instance in itself",
INJECT_INSTANCE_IN_ITSELF_CONSTRUCTOR:"[Error infuse.Injector.getInjectedValue] A matching constructor parameter has been found in the target, you can't inject an instance in itself"
MAPPING_BAD_PROP:'[Error infuse.Injector.mapClass/mapValue] the first parameter is invalid, a string is expected',
MAPPING_BAD_VALUE:'[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, it can\'t null or undefined, with property: ',
MAPPING_BAD_CLASS:'[Error infuse.Injector.mapClass/mapValue] the second parameter is invalid, a function is expected, with property: ',
MAPPING_BAD_SINGLETON:'[Error infuse.Injector.mapClass] the third parameter is invalid, a boolean is expected, with property: ',
MAPPING_ALREADY_EXISTS:'[Error infuse.Injector.mapClass/mapValue] this mapping already exists, with property: ',
CREATE_INSTANCE_INVALID_PARAM:'[Error infuse.Injector.createInstance] invalid parameter, a function is expected',
NO_MAPPING_FOUND:'[Error infuse.Injector.getInstance] no mapping found',
INJECT_INSTANCE_IN_ITSELF_PROPERTY:'[Error infuse.Injector.getInjectedValue] A matching property has been found in the target, you can\'t inject an instance in itself',
INJECT_INSTANCE_IN_ITSELF_CONSTRUCTOR:'[Error infuse.Injector.getInjectedValue] A matching constructor parameter has been found in the target, you can\'t inject an instance in itself'
};
varMappingVO=function(prop,value,cl,singleton){
...
...
@@ -58,7 +59,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -819,19 +879,21 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
getAll:function(){
varcopy={};
for(varcmdinthis.list){
if(this.list.hasOwnProperty(cmd)){
copy[cmd]=this.list[cmd];
}
}
returncopy;
},
add:function(commandName,command){
if(typeofcommandName!=='string'){
thrownewError("Error adding a command, the first parameter must be a string.");
thrownewError('Error adding a command, the first parameter must be a string.');
}
if(typeofcommand!=='function'){
thrownewError("Error adding a command with the name \""+command+"\", the second parameter must be a function, and must contain an \"execute\" public method.");
thrownewError('Error adding a command with the name "'+command+'", the second parameter must be a function, and must contain an "execute" public method.');
}
if(this.has(commandName)){
thrownewError("Error adding a command with the name: \""+commandName+"\", already registered.");
thrownewError('Error adding a command with the name: "'+commandName+'", already registered.');
}
this.list[commandName]=command;
this.addInterceptor(commandName);
...
...
@@ -860,16 +922,17 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.