Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/collection/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/collection/node_collection.min.js |
(function(){"use strict";BX.namespace("BX.Landing.Collection");BX.Landing.Collection.NodeCollection=function(){BX.Landing.Collection.BaseCollection.apply(this,arguments)};BX.Landing.Collection.NodeCollection.prototype={constructor:BX.Landing.Collection.NodeCollection,__proto__:BX.Landing.Collection.BaseCollection.prototype,getByNode:function(n){var o=null;this.some(function(t){if(t.node===n){o=t;return true}});return o},getBySelector:function(n){var o=null;this.some(function(t){if(t.selector===n){o=t;return true}});return o},add:function(n){if(!!n&&n instanceof BX.Landing.Block.Node&&!this.contains(n)){this.push(n)}},matches:function(n){var o=new BX.Landing.Collection.NodeCollection;this.forEach(function(t){try{if(t.node.matches(n)){o.push(t)}}catch(n){}});return o},notMatches:function(n){var o=new BX.Landing.Collection.NodeCollection;this.forEach(function(t){if(!t.node.matches(n)){o.push(t)}});return o},getVisible:function(){var n=new BX.Landing.Collection.NodeCollection;this.forEach(function(o){if(!o.hidden){n.push(o)}});return n}}})();