projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888e16c
)
Abstract all-widgets selector out into new function selectorForAllWidgets
author
Mike Taylor
<mike@indexdata.com>
Thu, 8 May 2014 14:13:23 +0000
(15:13 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 8 May 2014 14:13:23 +0000
(15:13 +0100)
src/mkws-core.js
patch
|
blob
|
history
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
4c9db87
..
8abdeda
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-427,8
+427,12
@@
mkws.pagerNext = function(tname) {
}
+ function selectorForAllWidgets() {
+ return '[class^="mkws"],[class*=" mkws"]';
+ }
+
function makeWidgetsWithin(level, node) {
- node.find('[class^="mkws"],[class*=" mkws"]').each(function() {
+ node.find(selectorForAllWidgets()).each(function() {
handleNodeWithTeam(this, function(tname, type) {
var myTeam = mkws.teams[tname];
if (!myTeam) {