dist/melonjs.js
function setChildsProperty(prop, val, recursive) {
         for (var i = this.children.length; i >= 0; i--) {
           var obj = this.children[i];

           if (recursive === true && obj instanceof me.Container) {
             obj.setChildsProperty(prop, val, recursive);
           }

           obj[prop] = val;
         }
       }
function setChildsProperty(prop, val, recursive) {
         for (var i = this.children.length; i >= 0; i--) {
           var obj = this.children[i];

           if (recursive === true && obj instanceof me.Container) {
             obj.setChildsProperty(prop, val, recursive);
           }

           obj[prop] = val;
         }
       }
function setChildsProperty ( prop , val , recursive ) { for ( var i = this . children . length ; i >= 0 ; i -- ) { var obj = this . children [ i ] ; if ( recursive === true && obj instanceof me . Container ) { obj . setChildsProperty ( prop , val , recursive ) ; } obj [ prop ] = val ; } }
Automatically set the specified property of all childs to the given value
@name setChildsProperty
@memberOf me.Container.prototype
@function
@param {String} property property name
@param {Object} value property value
@param {Boolean} [recursive=false] recursively apply the value to child containers if true
Automatically set the specified property of all childs to the given value