Index: lib/coreUtils.js |
=================================================================== |
--- a/lib/coreUtils.js |
+++ b/lib/coreUtils.js |
@@ -12,34 +12,16 @@ |
* GNU General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
"use strict"; |
-function desc(properties) |
-{ |
- let descriptor = {}; |
- let keys = Object.keys(properties); |
- |
- for (let key of keys) |
- descriptor[key] = Object.getOwnPropertyDescriptor(properties, key); |
- |
- return descriptor; |
-} |
-exports.desc = desc; |
- |
-function extend(cls, properties) |
-{ |
- return Object.create(cls.prototype, desc(properties)); |
-} |
-exports.extend = extend; |
- |
function findIndex(iterable, callback, thisArg) |
{ |
let index = 0; |
for (let item of iterable) |
{ |
if (callback.call(thisArg, item)) |
return index; |