var salesOffices = {};
salesOffices.clientList = [];
salesOffices.listen = function(fn){
this.clientList.push(fn)
}
salesOffices.trigger = function(){
console.log(this.clientList[0])
for(var i = 0,fn;fn = this.clientList[i++];){
fn.apply(this,arguments)
}
}
salesOffices.listen(function(price,squareMeter){
console.log("---1---")
console.log(price)
console.log(squareMeter)
})
salesOffices.listen(function(price,squareMeter){
console.log("---2---")
console.log(price)
console.log(squareMeter)
})
salesOffices.trigger(2000000,88);
salesOffices.trigger(3000000,131)
console