orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

FR: add changed callbacks for dictionary on server #389

Open macrozone opened 8 years ago

macrozone commented 8 years ago

Since we do not have Tracker on the server we should have a callback to observe dictionary values for changes.

E.g. with events:

orion.dictionary.on("changed", name, category, function(value) {
 ...
});

Or in the definition:

orion.dictionary.addDefinition(name, category, schema, {
  changed: function(value) {
     ....
   }
});