lib/kissy/5.0.0-alpha.3/build/menu-debug.js
function (element) {
            var self = this;
            var $el = self.$el;    // 隐藏当然不包含了
            // 隐藏当然不包含了
            if (!self.get('visible') || !$el) {
                return false;
            }
            if ($el && ($el[0] === element || $el.contains(element))) {
                return true;
            }
            var children = self.get('children');
            for (var i = 0, count = children.length; i < count; i++) {
                var child = children[i];
                if (child.containsElement && child.containsElement(element)) {
                    return true;
                }
            }
            return false;
        }
function (element) {
            var self = this;
            var $el = self.$el;    // 隐藏当然不包含了
            // 隐藏当然不包含了
            if (!self.get('visible') || !$el) {
                return false;
            }
            if ($el && ($el[0] === element || $el.contains(element))) {
                return true;
            }
            var children = self.get('children');
            for (var i = 0, count = children.length; i < count; i++) {
                var child = children[i];
                if (child.containsElement && child.containsElement(element)) {
                    return true;
                }
            }
            return false;
        }
function ( element ) { var self = this ; var $el = self . $el ; // 隐藏当然不包含了 // 隐藏当然不包含了 if ( ! self . get ( 'visible' ) || ! $el ) { return false ; } if ( $el && ( $el [ 0 ] === element || $el . contains ( element ) ) ) { return true ; } var children = self . get ( 'children' ) ; for ( var i = 0 , count = children . length ; i < count ; i ++ ) { var child = children [ i ] ; if ( child . containsElement && child . containsElement ( element ) ) { return true ; } } return false ; }
Whether this menu contains specified html element.
@param {KISSY.Node} element html Element to be tested.
@return {Boolean}
@protected
Whether this menu contains specified html element .