don't make noise when adding a listener
This commit is contained in:
parent
e86a3567be
commit
3afd144562
@ -66,7 +66,7 @@ define([
|
|||||||
// pattern needs to be an array
|
// pattern needs to be an array
|
||||||
pattern = type(pattern) === 'array'? pattern: [pattern];
|
pattern = type(pattern) === 'array'? pattern: [pattern];
|
||||||
|
|
||||||
console.log("[MOCK] adding change listener at path [%s]", pattern.join(','));
|
//console.log("adding change listener at path [%s]", pattern.join(','));
|
||||||
events.change.push({
|
events.change.push({
|
||||||
cb: function (oldval, newval, path, root) {
|
cb: function (oldval, newval, path, root) {
|
||||||
if (pathMatches(path, pattern)) {
|
if (pathMatches(path, pattern)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user