File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
================
3
3
4
- ## Version 0.3.3 (2013-07-??) ##
4
+ ## Version 0.3.4 (2013-10-08) ##
5
+ * Fix Issue #13 : html5_dnd is incompatible with js-interop and the latest SDK
6
+ * Remove dependencies on meta package
7
+ * Add version constraints on dependencies
8
+
9
+ ## Version 0.3.3 (2013-07-09) ##
5
10
* Support dragging of SVG elements (Issue #7 ). Dragging of SVG elements uses the
6
11
emulated mode in all browsers.
7
12
* Add tests for dragging SVG elements.
Original file line number Diff line number Diff line change @@ -8,12 +8,10 @@ import 'dart:html';
8
8
import 'dart:async' ;
9
9
import 'dart:math' as math;
10
10
import 'dart:svg' as svg;
11
- import 'package:meta/meta.dart' ;
12
11
import 'package:logging/logging.dart' ;
13
12
14
13
import 'src/utils.dart' as utils;
15
14
16
- import 'src/sortable/sortable.dart' ;
17
15
export 'src/sortable/sortable.dart' ;
18
16
19
17
part 'src/dnd/group.dart' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ library html5_dnd.sortable;
6
6
7
7
import 'dart:html' ;
8
8
import 'dart:async' ;
9
- import 'package:meta/meta.dart' ;
10
9
import 'package:logging/logging.dart' ;
11
10
12
11
import '../../html5_dnd.dart' ;
@@ -127,7 +126,6 @@ class SortableGroup extends DraggableGroup implements DropzoneGroup {
127
126
/**
128
127
* Installs sortable behaviour on [element] and registers it in this group.
129
128
*/
130
- @override
131
129
void install (Element element) {
132
130
_logger.finest ('installing as sortable' );
133
131
// Sortable elements are at the same time draggables (superclass) and dropzones.
@@ -232,15 +230,13 @@ class Position {
232
230
parent.children.insert (index, element);
233
231
}
234
232
235
- @override
236
233
int get hashCode {
237
234
int result = 17 ;
238
235
result = 37 * result + parent.hashCode;
239
236
result = 37 * result + index.hashCode;
240
237
return result;
241
238
}
242
239
243
- @override
244
240
bool operator == (other) {
245
241
if (identical (other, this )) return true ;
246
242
return (other is Position
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ int getElementIndexInParent(Element element) {
31
31
void clearTextSelections () {
32
32
window.getSelection ().removeAllRanges ();
33
33
var activeElement = document.activeElement;
34
- if (activeElement is TextAreaElement || activeElement is InputElement ) {
34
+ if (activeElement is TextAreaElement ) {
35
+ activeElement.setSelectionRange (0 , 0 );
36
+ } else if (activeElement is InputElement ) {
35
37
activeElement.setSelectionRange (0 , 0 );
36
38
}
37
39
}
Original file line number Diff line number Diff line change 1
1
name : html5_dnd
2
- version : 0.3.3
2
+ version : 0.3.4
3
3
author :
Marco Jakob <[email protected] >
4
4
description : HTML5 Drag and Drop
5
5
homepage : https://github.com/marcojakob/dart-html5-dnd
6
6
documentation : http://edu.makery.ch/projects/dart-html5-drag-and-drop
7
7
dependencies :
8
- logging : any
9
- meta : any
8
+ logging : ' >=0.7.6'
10
9
dev_dependencies :
11
- browser : any
12
- logging_handlers : any
10
+ browser : ' >=0.7.6 '
11
+ logging_handlers : ' >=0.5.0 '
Original file line number Diff line number Diff line change 4
4
library svt_test;
5
5
6
6
import 'dart:html' ;
7
- import 'dart:svg' as svg;
8
7
9
8
import 'package:logging_handlers/logging_handlers_shared.dart' ;
10
9
import 'package:logging/logging.dart' ;
You can’t perform that action at this time.
0 commit comments