MDL-72828 js: get_strings supports jquery objects
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -408,7 +408,7 @@ function(
|
||||
var pageItems = root.find(SELECTORS.PAGE_ITEM);
|
||||
// We want to request all of the strings at once rather than
|
||||
// one at a time.
|
||||
var stringRequests = pageItems.map(function(index, page) {
|
||||
var stringRequests = pageItems.toArray().map(function(index, page) {
|
||||
page = $(page);
|
||||
var pageNumber = getPageNumber(root, page);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user