Permalink
Browse files

Fixed typos and added example for can.Observe.keys

  • Loading branch information...
1 parent 9377c5e commit cc82077356a3bfabffd382ae348e16c8c34bd190 @imjoshdean imjoshdean committed Nov 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 observe/observe.js
View
@@ -183,7 +183,11 @@ steal('can/util','can/construct', function(can) {
}
},
/**
- * Iterates over an onbservable object to get an array of its keys.
+ * Iterates over an observable object to get an array of its keys.
+ *
+ * o = new can.Observe({ foo: 'bar', baz: 'qux' });
+ * can.Observe.keys(o); //-> ['foo', 'baz']
+ *
* @param {can.Observe} observe The observe to iterate over
* @return {Array} array An array of the keys on the object.
*/

0 comments on commit cc82077

Please sign in to comment.