Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't write into event template

  • Loading branch information...
commit adf2304ed522fef6ad81266c63734bba0e006f78 1 parent 2287ceb
@dchester dchester authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 client/src/LilBro.js
View
10 client/src/LilBro.js
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.