Bug 1209470 - Remove use of expression closure from Add-on SDK. r=mossop

This commit is contained in:
Tooru Fujisawa
2015-09-29 20:34:48 +09:00
parent c60f0640a4
commit ef7f96f74b
93 changed files with 658 additions and 409 deletions

View File

@@ -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 = {