rename specific function names for attribute mixin to match new station in life
authorAndrew Sutherland <asutherland@asutherland.org>
Mon, 06 Oct 2008 00:04:06 -0700
changeset 955 cc31b4657f0b670eb48628fca09e523981197ea9
parent 954 c47e0d5cd11b8826c3f6abfe515c02c65e618ed6
child 956 6aecee406c684fe17fadba4794cf0fac922cbd7b
push idunknown
push userunknown
push dateunknown
rename specific function names for attribute mixin to match new station in life
modules/datamodel.js
--- a/modules/datamodel.js
+++ b/modules/datamodel.js
@@ -221,17 +221,17 @@ let GlodaHasAttributesMixIn = {
    *  fetched.  Of course, since we do set _attributes with these new
    *  attributes, this check does not steady-state.
    *
    * @XXX Try and avoid compelling ourselves to cache every bound attribute.
    *  (If we stored the cached values in a sub-object, we could just trash the
    *   sub-object.  This would imply a return to having the getters just create
    *   a storage field rather than creating magic getters.)
    */
-  _replaceAttributes: function gloda_message_replaceAttributes(aNewAttribs) {
+  _replaceAttributes: function gloda_attrix_replaceAttributes(aNewAttribs) {
     let hadAttributes = this._attributes !== null;
     this._attributes = aNewAttribs;
     // if this guy didn't already have attributes, we don't actually need to
     //  do any caching work.
     if (!hadAttributes)
       return;
 
     let seenDefs = {};
@@ -244,22 +244,22 @@ let GlodaHasAttributesMixIn = {
           // force the getter to do his work (on us)
           getterFunc.call(this);
           seenDefs[attrDef] = true;
         }
       }
     }
   },
 
-  getAttributeInstances: function gloda_message_getAttributeInstances(aAttr) {
+  getAttributeInstances: function gloda_attrix_getAttributeInstances(aAttr) {
     return [attrParamVal for each (attrParamVal in this.rawAttributes) if
             (attrParamVal[0] == aAttr)];
   },
 
-  getSingleAttribute: function gloda_message_getSingleAttribute(aAttr) {
+  getSingleAttribute: function gloda_attrix_getSingleAttribute(aAttr) {
     let instances = this.getAttributeInstances(aAttr);
     if (instances.length > 0)
       return instances[0];
     else
       return null;
   }
 };