# Prototype

**URL:** https://forum.kirupa.com/t/prototype/297187
**Category:** Uncategorized
**Created:** [September 27, 2009, 12:28pm UTC](https://forum.kirupa.com/t/prototype/297187 "2009-09-27T12:28:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grass](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grass](https://forum.kirupa.com/u/grass)
#### Post date: [September 27, 2009, 12:28pm UTC](https://forum.kirupa.com/t/prototype/297187/1 "2009-09-27T12:28:53Z")

</div>

hi,

here’s a question… if i do something like that on some prebuilt class:

```auto

Object.prototype.func = function() {
  //do smthng
}

//and then

var asd = {};
for(var i in asd) trace(i+" = "+asd*); //traces smthng like "function66 - function Function"

```

this is sortof a problem, as I use for-loops a lot… now as I understand prototype creates a dynamic variable - any chance there’s a fix to that, so the prototype reference wouldn’t be visible if I loop the object?

dnx
