};
-mkws.objectWithParent = function(parent) {
- function thing() {} // Must be function so `prototype' works
-
- thing.prototype = parent;
- var res = new thing();
- thing.prototype = null;
- return res;
-};
+// This function is taken from a StackOverflow answer
+// http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript/901144#901144
+mkws.getParameterByName = function(name) {
+ name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
+ var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
+ results = regex.exec(location.search);
+ return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
+}
mkws.registerWidgetType = function(name, fn) {
log("running auto searches");
for (var teamName in mkws.teams) {
- mkws.teams[teamName].runAutoSearch();
+ mkws.teams[teamName].queue("ready").publish();
}
}