allow XV.appendExtension to XV.Lists
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 19 Aug 2014 03:37:51 +0000 (22:37 -0500)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 19 Aug 2014 03:37:51 +0000 (22:37 -0500)
lib/enyo-x/source/core.js
lib/enyo-x/source/views/list.js

index 053f9be..29bac3b 100644 (file)
@@ -90,10 +90,11 @@ trailing:true, white:true, strict: false*/
 
     /**
       Add component or array of component view(s) to a view class that
-      has implemented the `extensionsMixin`.
+      has implemented the `ExtensionsMixin`.
 
       Examples of classes that support extensions are:
         * `Workspace`
+        * `List`
         * `ParameterWidget`
 
       @param {String} Class name
index aff8026..b7e3fa9 100644 (file)
@@ -21,7 +21,7 @@ trailing:true, white:true, strict:false*/
     Note: enyo.List includes a scroller; therefore, XV.List should not be placed inside a scroller.
     @extends XV.ListBase
    */
-  enyo.kind(/** @lends XV.List# */{
+  enyo.kind(_.extend(/** @lends XV.List# */{
     name: "XV.List",
     kind: "XV.ListBase",
     classes: "xv-list",
@@ -106,6 +106,7 @@ trailing:true, white:true, strict:false*/
      */
     create: function () {
       this.inherited(arguments);
+      this.processExtensions();
       var actions = this.getActions() || [],
         deleteAction = _.findWhere(actions, {"name": "delete"}),
         privilege,
@@ -758,6 +759,6 @@ trailing:true, white:true, strict:false*/
         }
       }
     }
-  });
+  }, XV.ExtensionsMixin));
 
 }());