From d717020911a350a5ea3c0a985c57d56c8fcad607 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 2 Apr 2010 11:10:36 -0700 Subject: widgets now work properly --- src/Angular.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Angular.js') diff --git a/src/Angular.js b/src/Angular.js index 5b5aa87b..4e3266eb 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -398,6 +398,14 @@ function parseKeyValue(keyValue) { return obj; } +function toKeyValue(obj) { + var parts = []; + foreach(obj, function(value, key){ + parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(value)); + }); + return parts.length ? parts.join('&') : ''; +}; + function angularInit(config){ if (config.autobind) { compile(window.document, config).$init(); -- cgit v1.2.3