diff options
| author | Misko Hevery | 2011-04-21 16:32:05 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-06-08 13:49:11 -0700 |
| commit | cc9f1fdf38bb179166212382b33e78255e669e73 (patch) | |
| tree | cb9881186ce11f18c985e93e75a20b4601851f60 /src/Angular.js | |
| parent | f243c6aeda4c7dc87dac495dfb8942f4c8ba675e (diff) | |
| download | angular.js-cc9f1fdf38bb179166212382b33e78255e669e73.tar.bz2 | |
Proper handling of special attributes in jqlite
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js index de6f2e5b..7249fb69 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -413,6 +413,19 @@ function isElement(node) { } /** + * @param str 'key1,key2,...' + * @returns {object} in the form of {key1:true, key2:true, ...} + */ +function makeMap(str){ + var obj = {}, items = str.split(","), i; + for ( i = 0; i < items.length; i++ ) + obj[ items[i] ] = true; + return obj; +} + + + +/** * HTML class which is the only class which can be used in ng:bind to inline HTML for security reasons. * @constructor * @param html raw (unsafe) html |
