can-stache-key
Advanced tools
Comparing version 1.0.0-pre.13 to 1.0.0-pre.14
@@ -244,15 +244,2 @@ var observeReader = require("can-stache-key"); | ||
testHelpers.dev.devOnlyTest("a warning is displayed when using @", function() { | ||
var teardown = testHelpers.dev.willWarn("functions are no longer called by default so @ is unnecessary in '@func'."); | ||
var func = function() { | ||
QUnit.ok(false, "method called"); | ||
}; | ||
var data = { func: func }; | ||
var reads = observeReader.reads("@func"); | ||
observeReader.read(data, reads); | ||
QUnit.equal(teardown(), 1, "warning displayed"); | ||
}); | ||
testHelpers.dev.devOnlyTest("a warning is given for `callMethodsOnObservables: true`", function() { | ||
@@ -259,0 +246,0 @@ var teardown = testHelpers.dev.willWarn("can-stache-key: read() called with `callMethodsOnObservables: true`."); |
@@ -159,11 +159,2 @@ var Observation = require('can-observation'); | ||
read: function(value, i, reads, options, state, prev){ | ||
if( isAt(i, reads) ) { | ||
dev.warn( | ||
(options.filename ? options.filename + ':' : '') + | ||
(options.lineNumber ? options.lineNumber + ': ' : '') + | ||
"functions are no longer called by default so @ is unnecessary in '" + | ||
"@" + reads[0].key + "'." | ||
); | ||
} | ||
if(options.callMethodsOnObservables && canReflect.isObservableLike(prev) && canReflect.isMapLike(prev)) { | ||
@@ -170,0 +161,0 @@ dev.warn("can-stache-key: read() called with `callMethodsOnObservables: true`."); |
{ | ||
"name": "can-stache-key", | ||
"version": "1.0.0-pre.13", | ||
"version": "1.0.0-pre.14", | ||
"description": "Read and write keys on a value", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com", |
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
25421
538