ifnode
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -61,2 +61,13 @@ 'use strict'; | ||
if(typeof component === 'function' && isInheritsFrom(component, Component)) { | ||
var component_name = component_config.name || component.name; | ||
var saved_component = this.components[component_name]; | ||
if ( | ||
saved_component && | ||
saved_component.constructor === component && | ||
saved_component.name === component_name | ||
) { | ||
return component; | ||
} | ||
component = new component(component_config); | ||
@@ -126,9 +137,3 @@ } | ||
return this.components[key] = component; | ||
} else if ( | ||
saved_component === component || | ||
( | ||
saved_component.constructor === component.constructor && | ||
saved_component.name === component.name | ||
) | ||
) { | ||
} else if (saved_component === component) { | ||
return saved_component; | ||
@@ -135,0 +140,0 @@ } |
{ | ||
"name": "ifnode", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Node.js MVC Framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
948788
200
3574
0
3