derby-templates
Advanced tools
Comparing version 0.1.9 to 0.1.11
@@ -302,3 +302,5 @@ var saddle = require('saddle'); | ||
this.nameMap = new ViewsMap(); | ||
this.elementMap = new ViewsMap(); | ||
this.tagMap = new ViewsMap(); | ||
// TODO: elementMap is deprecated and should be removed with Derby 0.6.0 | ||
this.elementMap = this.tagMap; | ||
} | ||
@@ -345,3 +347,5 @@ Views.prototype.find = function(name, namespace) { | ||
this.nameMap[mapName] = view; | ||
if (options && options.element) this.elementMap[options.element] = view; | ||
// TODO: element is deprecated and should be removed with Derby 0.6.0 | ||
var tagName = options && (options.tag || options.element); | ||
if (tagName) this.tagMap[tagName] = view; | ||
return view; | ||
@@ -348,0 +352,0 @@ }; |
{ | ||
"name": "derby-templates", | ||
"version": "0.1.9", | ||
"version": "0.1.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46735
1292