Jquery UI conflict with Object.prototype?

Jquery UI conflict with Object.prototype?


Hello again. I've been writing a script today and wanted a quick way
to figure out the size of arrays that are initialized like var
barValues = {"Lab 1":10, "Lab 2":20, "Lab 3":30} (which seem to be
considered as objects) so I wrote a Object.prototype.size that did
this for me. However when this was done and I hooked up jquery UI +
jquery draggable I get the error "proto.plugins[i].push is not a
function" on line 18 of ui.core.js. The code still runs though but I'm
not using any UI plugins on the page so that might be why.
Are there known conflicts to prototyping on different things when
using jquery or should prototyping be avoided? Some clarity from one
of the pros would be greatly appreciated!
Kindly, Marcus.