UNPKG

ember-material-icons

Version:

Google Material icons for your ember-cli app

29 lines (19 loc) 814 B
// import { metaFor } from './meta'; // import { intern } from '@glimmer/util'; export function setProperty(parent: any, property: string, val: any) { // let rootProp = metaFor(parent).root().chainFor(property)); // let referencesToNotify = metaFor(parent).referencesFor(property)); parent[property] = val; // if (referencesToNotify) { // referencesToNotify.forEach(function(ref) { ref.notify(); }); // } // if (rootProp) rootProp.notify(); } export function notifyProperty(parent: any, property: string) { // let rootProp = metaFor(parent).root().chainFor(property)); // let referencesToNotify = metaFor(parent).referencesFor(property)); // if (referencesToNotify) { // referencesToNotify.forEach(function(ref) { ref.notify(); }); // } // if (rootProp) rootProp.notify(); }