Bug 1209470 - Remove use of expression closure from Add-on SDK. r=mossop
This commit is contained in:
@@ -152,8 +152,12 @@ print """/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
const LOCALES_TO_RULES = %s;
|
||||
|
||||
// Utility functions for plural rules methods
|
||||
function isIn(n, list) list.indexOf(n) !== -1;
|
||||
function isBetween(n, start, end) start <= n && n <= end;
|
||||
function isIn(n, list) {
|
||||
return list.indexOf(n) !== -1;
|
||||
}
|
||||
function isBetween(n, start, end) {
|
||||
return start <= n && n <= end;
|
||||
}
|
||||
|
||||
// List of all plural rules methods, that maps an integer to the plural form name to use
|
||||
const RULES = {
|
||||
|
||||
Reference in New Issue
Block a user