push layout

This commit is contained in:
Leo Horie 2015-01-19 20:55:26 -05:00
parent fbb25f05ae
commit 4deeeb486b
37 changed files with 2289 additions and 2298 deletions

View file

@ -18,13 +18,13 @@ var m = (function app(window, undefined) {
initialize(window);
/*
/**
* @typedef {String} Tag
* A string that looks like -> div.classname#id[param=one][param2=two]
* Which describes a DOM node
*/
/*
/**
*
* @param {Tag} The DOM node tag
* @param {Object=[]} optional key-value pairs to be mapped to DOM attrs
@ -689,13 +689,10 @@ var m = (function app(window, undefined) {
var pairs = str.split("&"), params = {};
for (var i = 0, len = pairs.length; i < len; i++) {
var pair = pairs[i].split("=");
params[decodeSpace(pair[0])] = pair[1] ? decodeSpace(pair[1]) : ""
params[decodeURIComponent(pair[0])] = pair[1] ? decodeURIComponent(pair[1]) : ""
}
return params
}
function decodeSpace(string) {
return decodeURIComponent(string.replace(/\+/g, " "))
}
function reset(root) {
var cacheKey = getCellCacheKey(root);
clear(root.childNodes, cellCache[cacheKey]);