KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
STORE = { item : function() { } }; STORE.item.prototype.add = function() { alert('test 123'); }; STORE.item.add(); I have been trying to figure out what's wrong with this quite a while. Why doesn't this work? However, it works when I use the follow: STORE.item.prototype.add();
Tags (comma-separated)
Save Edits
Cancel