Commit c9ee2023 by Иван Кубота

Support of subscribe to hash list

parent 237ccd05
......@@ -400,6 +400,19 @@ Store.prototype = {
uns[ i ]();
}
};
}else if(typeof key === 'object') {
var list = [];
var data = {}, k, i, _i;
for(k in key){
list.push(key[k]);
}
return this.sub(list, function(){
i = 0;
for(k in key){
data[k] = arguments[i++];
}
fn.call(this, data);
}, suppressFirstCall);
}else{
un = this.on( key, fn );
!suppressFirstCall && fn( this.get( key ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment