bwu-dart / bwu_datagrid

A data-grid Polymer element in Dart
MIT License
74 stars 26 forks source link

Class 'MouseEvent' has no instance getter 'which'. #151

Closed andrey-zakharov closed 8 years ago

andrey-zakharov commented 8 years ago

Got this when clicked on column: ` Uncaught Unhandled exception: Class 'MouseEvent' has no instance getter 'which'.

NoSuchMethodError: method not found: 'which' Receiver: Instance of 'MouseEventImpl' Arguments: []

0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)

1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)

2 JSObject.noSuchMethod.throwError (dart:js:1171)

3 JSObject.noSuchMethod (dart:js:1182)

4 Sortable.init.. (package:bwu_datagrid/effects/sortable.dart:138:15)

(anonymous function)
`

looks like MouseEvent."which" was changed to "button".

zoechi commented 8 years ago

What bwu_datagrid version are you using? I think I changed that a while ago and I couldn't find a single which in the source code.

andrey-zakharov commented 8 years ago

In our project we are using Polymer 0.5, and we cannot upgrade to 1.0 as it would cost a lot of time. So I'm using bwu_datagrid for 0.5 - pub get gives me 0.0.24.

zoechi commented 8 years ago

I see. I only did that change in the Polymer1 branch. It won't be much work to do that in the master branch as well. I'll have a look next week.

zoechi commented 8 years ago

Sorry, I don't know when I'll be able to do this. What about a PR?