Issue with printing arrays in ember.js
I'm seeing something weird when I try to include the ember.js library
(ember-1.0.0-rc.7.js).
The javacode I have just prints out a javascript array:
<script type="application/javascript">
var songs = [ 'a','b','c'];
console.debug(songs.toString());
for(key in songs)
{
console.debug(songs[key]);
}
</script>
When I don't include the library, it'll print out a , b, c in the console.
However, when i do include it, it start printing out a, b, c, but as well
as all the functions to...
Example: function (idx) { return this.objectAt(idx); } function
superWrapper() { var ret, sup = this._super; this._super = superFunc || K;
ret = func.apply(this, arguments); this._super = sup; return ret; }
function (key) { return this.mapProperty(key); }
Any reason why this occurs with the ember.js library, and how do I resolve
this issue?
Any advice appreciated, Thanks, D
No comments:
Post a Comment