aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js13
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