Bug 1274271 - Remove unused function applyNamedArgs; r=automatedtester

MozReview-Commit-ID: DU5xHDLL4Ww

--HG--
extra : rebase_source : 59949b4c99e007231bf68f94bd1b513c7d43376b
This commit is contained in:
Andreas Tolfsen 2016-05-19 14:53:00 +01:00
Родитель b423621b8a
Коммит 0824f63ac1
1 изменённых файлов: 0 добавлений и 29 удалений

Просмотреть файл

@ -289,35 +289,6 @@ ElementManager.prototype = {
return converted;
},
/*
* Execute* helpers
*/
/**
* Return an object with any namedArgs applied to it. Used
* to let clients use given names when refering to arguments
* in execute calls, instead of using the arguments list.
*
* @param object args
* list of arguments being passed in
*
* @return object
* If '__marionetteArgs' is in args, then
* it will return an object with these arguments
* as its members.
*/
applyNamedArgs: function EM_applyNamedArgs(args) {
let namedArgs = {};
args.forEach(function(arg) {
if (arg && typeof(arg['__marionetteArgs']) === 'object') {
for (let prop in arg['__marionetteArgs']) {
namedArgs[prop] = arg['__marionetteArgs'][prop];
}
}
});
return namedArgs;
},
/**
* Find a single element or a collection of elements starting at the
* document root or a given node.