projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abstract all-widgets selector out into new function selectorForAllWidgets
[mkws-moved-to-github.git]
/
src
/
mkws-core.js
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) {
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) {
handleNodeWithTeam(this, function(tname, type) {
var myTeam = mkws.teams[tname];
if (!myTeam) {