Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created February 25, 2013 22:11
Show Gist options
  • Save konsumer/5033816 to your computer and use it in GitHub Desktop.
Save konsumer/5033816 to your computer and use it in GitHub Desktop.
var w = new function() {
this.Jb = 153;
this.Xh = 178;
this.lh = 382
},
fa = 0;
function ga(a) {
if("object" != typeof a) return a;
if(a.hash) return a.hash();
a.collectionsHash || (a.collectionsHash = "_" + fa++);
return a.collectionsHash
}
function x(a) {
this.qa = {};
this.Nd = 0;
a != g ? this.vc = a : this.vc = ga
}
s = x.prototype;
s.getData = function() {
var a = {};
a.content = this.qa;
a.size = this.Nd;
return a
};
s.setData = function(a) {
this.qa = a.content;
this.Nd = a.size
};
s.copy = function() {
var a = new x(this.vc);
this.forEach(function(b, c) {
a.put(b, c)
});
return a
};
@konsumer
Copy link
Author

line 10 causes Uncaught TypeError: Cannot read property 'hash' of null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment