robnyman / domassistant

Automatically exported from code.google.com/p/domassistant
1 stars 0 forks source link

ReplaceContent failes on HTHMLArray #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Whe calling replaceContent on a HTMLArray it fails.

This code:
$(this).elmsByClass('count').replaceContent('9');

Results in the error:
"this.addContent is not a function"

Changing this[i] to $(this[i]) on row 65 in DOMAssistantContent.2.5.7.js
fixes the error.

Original issue reported on code.google.com by VoxPe...@gmail.com on 18 Jan 2008 at 8:46

GoogleCodeExporter commented 9 years ago
Good catch! However, it was rather a flaw in the replaceContent method itself, 
so
line 152 in the DOMAssistant.Content module has been changed to:

$(this).addContent(newContent);

This fix will be included in the next release of DOMAssistant.

Original comment by robny...@gmail.com on 23 Jan 2008 at 10:07