Mercurial > defr > drupal > scald > dnd
comparison js/dnd-library.js @ 39:3a8422ac941c
Add debug statement concerning possibly dead code branch
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 18 Sep 2009 15:17:42 +0200 |
parents | 9e27e0aca323 |
children | af4b3c09cc10 |
comparison
equal
deleted
inserted
replaced
38:9e27e0aca323 | 39:3a8422ac941c |
---|---|
249 // Create an element to insert | 249 // Create an element to insert |
250 var insert = dom.create('div', {'class' : 'dnd-drop-wrapper', 'id' : 'dnd-inserted'}, representation); | 250 var insert = dom.create('div', {'class' : 'dnd-drop-wrapper', 'id' : 'dnd-inserted'}, representation); |
251 | 251 |
252 // The no-parent case | 252 // The no-parent case |
253 if ($(block).is('body')) { | 253 if ($(block).is('body')) { |
254 // Never seem to be hit ? | |
254 s.setNode(insert); | 255 s.setNode(insert); |
255 } | 256 } |
256 else { | 257 else { |
257 var old_id = block.id; | 258 var old_id = block.id; |
258 block.id = 'target-block'; | 259 block.id = 'target-block'; |