Permalink
Browse files

don't write into event template

  • Loading branch information...
1 parent 2287ceb commit adf2304ed522fef6ad81266c63734bba0e006f78 @dchester dchester committed Sep 10, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 client/src/LilBro.js
View
@@ -12,8 +12,16 @@ LilBro = function(args) {
this.watch_container(args.element, args.watch_focus);
this.freshEvent = function () {
+ var base = {};
+ if(args.event_base){
+ for(var p in args.event_base){
+ if(args.event_base.hasOwnProperty(p)){
+ base[p] = args.event_base[p];
+ }
+ }
+ }
return new LilBro.Event({
- base: args.event_base || {},
+ base: base,
key_map: args.key_map || LilBro.Schema.key_map,
type_map: args.type_map || LilBro.Schema.type_map,
server: args.server,

0 comments on commit adf2304

Please sign in to comment.