8
0
Просмотр исходного кода

Docs: Improved Observable#set docs. Closes #73.

Piotrek Koszuliński 8 лет назад
Родитель
Сommit
632c7a5b43
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-utils/src/observablemixin.js

+ 2 - 2
packages/ckeditor5-utils/src/observablemixin.js

@@ -645,8 +645,8 @@ function attachBindToListeners( observable, toBindings ) {
  * properties and methods, but means that `foo.set( 'bar', 1 )` may be slightly slower than `foo.bar = 1`.
  *
  * @method #set
- * @param {String} name The attributes name.
- * @param {*} value The attributes value.
+ * @param {String|Object} name The attribute's name or object with `name=>value` pairs.
+ * @param {*} [value] The attribute's value (if `name` was passed in the first parameter).
  */
 
 /**