Repository: cordova-plugin-device-motion Updated Branches: refs/heads/master 0b30af4d9 -> 576fe6ea4
ubuntu: don't destroy callback after use Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/576fe6ea Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/576fe6ea Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/576fe6ea Branch: refs/heads/master Commit: 576fe6ea4e6028f2abb88201e929d4af69049a02 Parents: 0b30af4 Author: Maxim Ermilov <[email protected]> Authored: Fri May 2 20:57:49 2014 +0400 Committer: Steven Gill <[email protected]> Committed: Tue Jun 3 14:22:45 2014 -0700 ---------------------------------------------------------------------- src/ubuntu/accelerometer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/576fe6ea/src/ubuntu/accelerometer.cpp ---------------------------------------------------------------------- diff --git a/src/ubuntu/accelerometer.cpp b/src/ubuntu/accelerometer.cpp index 8d39174..74e3ead 100644 --- a/src/ubuntu/accelerometer.cpp +++ b/src/ubuntu/accelerometer.cpp @@ -54,5 +54,5 @@ void DeviceMotion::updateSensor() { obj.insert("timestamp", QDateTime::currentDateTime().toMSecsSinceEpoch()); if (_scId) - this->cb(_scId, obj); + this->callbackWithoutRemove(_scId, CordovaInternal::format(obj)); }
