Движок правил wb-rules 1.7/en: различия между версиями

Новая страница: «In previous versions of wb-rules, it was recommended to use loopback to isolate rules, i.e. to isolate rules. wrapping the script code into a construct: <syntaxh…»
(Новая страница: «=== Note ===»)
(Новая страница: «In previous versions of wb-rules, it was recommended to use loopback to isolate rules, i.e. to isolate rules. wrapping the script code into a construct: <syntaxh…»)
Строка 72: Строка 72:
=== Note ===
=== Note ===


В предыдущих версиях wb-rules для изоляции правил рекомендовалось использовать замыкание, т.е.  
In previous versions of wb-rules, it was recommended to use loopback to isolate rules, i.e. to isolate rules.  
оборачивание кода сценария в конструкцию:
wrapping the script code into a construct:
<syntaxhighlight lang="js">
<syntaxhighlight lang="js">
(function() {
(function() {
     // код сценария идёт здесь
     // script code goes here
})();
})();
</syntaxhighlight>
</syntaxhighlight>
12 063

правки