diff options
| author | Misko Hevery | 2010-04-02 11:10:36 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-02 11:10:36 -0700 | 
| commit | d717020911a350a5ea3c0a985c57d56c8fcad607 (patch) | |
| tree | 0b0a9f14cdfdcdf0dfb4c3fd607daf5ab9f9901d /src/Angular.js | |
| parent | 85f13d602e31424b2e2d18172872f14a24c31135 (diff) | |
| download | angular.js-d717020911a350a5ea3c0a985c57d56c8fcad607.tar.bz2 | |
widgets now work properly
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 8 | 
1 files changed, 8 insertions, 0 deletions
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();  | 
