Closed Xanir closed 9 years ago
When testing this update your bower dependencies
I am getting an undefined in here:
this.registerMouseDragHandler = function(mdElem, startMoveFunction, moveFunction, endMoveFunction, delay) {
within Services.min.js
the mdElem was just a DOM element so "on" was not valid. If I did a $(mdElem).on it worked.
So either the nz-services needs to be better protective or the caller of this needs to wrap/parse the element better. (I did a "grunt clean & bower install & grunt dev")
I have checked in an update on the branch with proposed fixes
Hmm, in the latest version v0.1.8 of nzServices the .on
function is not used.
See here:
https://github.com/EnzeyNet/Services/blob/master/src/nzEventHelper.js#L121
It also throws an error if anything other then a DOM Node is passed in as the element.
Issue was related to bower NOT updating the Services files from 0.1.7. Done and change reverted.