can-stache
Advanced tools
Comparing version 4.17.9 to 4.17.10
{ | ||
"name": "can-stache", | ||
"version": "4.17.9", | ||
"version": "4.17.10", | ||
"description": "Live binding handlebars templates", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com/doc/can-stache.html", |
@@ -228,2 +228,12 @@ "use strict"; | ||
var domRenderer = core.getTemplateById(localPartialName); | ||
//!steal-remove-start | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (!domRenderer) { | ||
dev.warn( | ||
(state.filename ? state.filename + ':' : '') + | ||
(state.lineNo ? state.lineNo + ': ' : '') + | ||
'Unable to find partial "' + localPartialName + '".'); | ||
} | ||
} | ||
//!steal-remove-end | ||
return domRenderer ? domRenderer(partialScope, {}, nodeList) : getDocument().createDocumentFragment(); | ||
@@ -230,0 +240,0 @@ } |
@@ -222,1 +222,9 @@ var testHelpers = require('can-test-helpers'); | ||
}); | ||
testHelpers.dev.devOnlyTest("Should give a warning when a partial is not found #493", function () { | ||
var template, | ||
teardown = testHelpers.dev.willWarn(/Unable to find partial/); | ||
template = stache('missing.stache', "{{> aPartial}}"); | ||
template(); | ||
QUnit.equal(teardown(), 1, "got expected warning"); | ||
}); |
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
580783
11404
38