Comparing version 0.2.2 to 0.2.3
19
index.js
@@ -140,23 +140,6 @@ /*───────────────────────────────────────────────────────────────────────────*\ | ||
//setup views | ||
//add addView method if available | ||
if (me.plugins.view) { | ||
if (viewModule.addView) { | ||
nemo.view.addView = viewModule.addView; | ||
} | ||
} | ||
config.view.forEach(function(key) { | ||
if (me.plugins.view) { | ||
var viewName = (key.constructor === String) ? key : key.name; | ||
//dedupe step | ||
if (nemo.view[viewName]) { | ||
return; | ||
} | ||
//reserved step | ||
if (viewName === 'addView' && nemo.view.addView && nemo.view.addView.constructor === Function) { | ||
throw new Error('nemo.view.addView is reserved. Please rename your view'); | ||
} | ||
//process with the view interface | ||
nemo.view[viewName] = viewModule.addView(key); | ||
viewModule.addView(key); | ||
} else { | ||
@@ -163,0 +146,0 @@ //old views |
{ | ||
"name": "nemo", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Abstraction for automation test components", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
42454
800