diff --git a/Demos/demo.js b/Demos/demo.js
index f9aa10d..d4e1292 100644
--- a/Demos/demo.js
+++ b/Demos/demo.js
@@ -1,5 +1,5 @@
// if creating your own class, just use Implements: [Events, Channels]
-Fx.implement(Channels.prototype);
+Channels.installTo(Fx);
window.addEvent('domready', function(){
diff --git a/Source/Channels.js b/Source/Channels.js
index e67d0cb..a72feaa 100644
--- a/Source/Channels.js
+++ b/Source/Channels.js
@@ -58,6 +58,10 @@ Object.append(Channels, {
});
},
installTo: function(obj){
+ if (typeOf(obj) === 'array'){
+ obj.each(function(item){ Channels.installTo(item); }, this);
+ return;
+ }
obj.implement(methods);
}
});
diff --git a/Source/Element.Channels.js b/Source/Element.Channels.js
index 6626ddf..e8e31cf 100644
--- a/Source/Element.Channels.js
+++ b/Source/Element.Channels.js
@@ -20,8 +20,4 @@ provides: [Element.Channels]
...
*/
-[Window, Document, Element].each(function(item){
- Channels.installTo(item);
-});
-
-
+Channels.installTo([Window, Document, Element]);
diff --git a/Tests/Channels/Channels.html b/Tests/Channels/Channels.html
index eeede1b..3f570d2 100644
--- a/Tests/Channels/Channels.html
+++ b/Tests/Channels/Channels.html
@@ -17,7 +17,7 @@