/*
This file contains proprietary software owned by Motorola Mobility, Inc.
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
*/
/**
@module montage/core/event/change-notification
*/
var Montage = require("montage").Montage,
logger = require("core/logger").logger("change-notification"),
UNDERSCORE = "_";
// key: , ,
var _descriptorsDirectory = Object.create(null);
// key: ,
var _willChangeDescriptorsDirectory = Object.create(null);
var _willChangeDescriptorsIndexesDirectory = Object.create(null);
var _changeDescriptorsDirectory = Object.create(null);
var _changeDescriptorsIndexesDirectory = Object.create(null);
exports.__reset__ = function() {
_descriptorsDirectory = Object.create(null);
_willChangeDescriptorsDirectory = Object.create(null);
_willChangeDescriptorsIndexesDirectory = Object.create(null);
_changeDescriptorsDirectory = Object.create(null);
_changeDescriptorsIndexesDirectory = Object.create(null);
// also need to remove all installed setters
};
exports.__debug__ = function() {
console.log("_descriptorsDirectory", _descriptorsDirectory);
console.log("_willChangeDescriptorsDirectory", _willChangeDescriptorsDirectory, _willChangeDescriptorsIndexesDirectory);
console.log("_changeDescriptorsDirectory", _changeDescriptorsDirectory, _changeDescriptorsIndexesDirectory);
};
var ChangeNotification = exports.ChangeNotification = Object.create(Montage, {
// (object) =>