Displaying 2 results from an estimated 2 matches for "parent_".
Did you mean:
parent
2006 Jun 24
0
Sortable with sortables? this.destroy not a function O_o
...ate on
the main-container.
I have it like so (simplified):
var myLists = new Array(); // start a empty array for push
var mainDiv = ''main''; // some already present div to carry all stuff.
function newList() {
var sortlist = Builder.node(''div'', {id:''parent_''+randomId}, [
Builder.node(''ul'', {id:''childsort_''randomId})
]); // wrapping another div around the list for
dragging.
$(mainDiv).appendChild(sortlist); // append to dom
myLists.push(''childsort_&...
2006 Apr 04
3
model validates twice in tests, produces duplicate errors
In my unit tests for my User model, I''m testing some validation cases.
What is really strange, and driving me crazy, is that in the unit
tests, it seems like the save method is causing my validations to
execute twice, and produce duplicate error messages. This is making my
tests fail (because I''m checking for the number of errors that I
expect). In the web browser, only one error