uawdijnntqw1x1x1
IP : 3.149.230.209
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
axolotl.ru
/
www
/
bitrix
/
js
/
landing
/
collection
/
node_collection.js
/
/
;(function() { "use strict"; BX.namespace("BX.Landing.Collection"); /** * Implements interface for works with nodes collection * * @extends {BX.Landing.Collection.BaseCollection} * @constructor */ 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, /** * Gets node by node * @param {HTMLElement} node * @return {?BX.Landing.Block.Node} */ getByNode: function(node) { var result = null; this.some(function(item) { if (item.node === node) { result = item; return true; } }); return result; }, /** * Gets node by node * @param {string} selector * @return {?BX.Landing.Block.Node} */ getBySelector: function(selector) { var result = null; this.some(function(item) { if (item.selector === selector) { result = item; return true; } }); return result; }, /** * Adds node to collection * @param {BX.Landing.Block.Node} node */ add: function(node) { if (!!node && node instanceof BX.Landing.Block.Node && !this.contains(node)) { this.push(node); } }, /** * Gets nodes matching selector * @param selector * @return {Array|Array.<BX.Landing.Block.Node>} */ matches: function(selector) { var result = new BX.Landing.Collection.NodeCollection(); this.forEach(function(item) { try { if (item.node.matches(selector)) { result.push(item); } } catch(err) {} }); return result; }, /** * Gets nodes not matching selector * @param selector * @return {BX.Landing.Collection.NodeCollection.<BX.Landing.Block.Node>} */ notMatches: function(selector) { var result = new BX.Landing.Collection.NodeCollection(); this.forEach(function(item) { if (!item.node.matches(selector)) { result.push(item); } }); return result; }, /** * Gets visible elements * @return {BX.Landing.Collection.NodeCollection} */ getVisible: function() { var result = new BX.Landing.Collection.NodeCollection(); this.forEach(function(item) { if (!item.hidden) { result.push(item); } }); return result; } }; })();
/var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/landing/collection/node_collection.js