Commit fb434023 authored by Rafal Zajac's avatar Rafal Zajac

Update to 0.1.9

parent 226d80d5
......@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AngularJS Touch Slider</title>
<link rel="stylesheet" href="demo.css" />
<link rel="stylesheet" href="rzslider.css" />
<link rel="stylesheet" href="../dist/rzslider.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
</head>
......@@ -65,8 +65,8 @@
</div>
</body>
<script src="angular.min.js"></script>
<script src="rzslider.js"></script>
<script src="../bower_components/angular/angular.min.js"></script>
<script src="../rzslider.js"></script>
<script>
var app = angular.module('plunker', ['rzModule']);
......
......@@ -57,7 +57,7 @@ function throttle(func, wait, options) {
}
})
.factory('Slider', ['$timeout', '$document', 'throttle', function($timeout, $document, throttle)
.factory('RzSlider', ['$timeout', '$document', 'throttle', function($timeout, $document, throttle)
{
/**
* Slider
......@@ -652,7 +652,7 @@ function throttle(func, wait, options) {
*/
roundStep: function(value)
{
var step = this.step,
var step = this.step/Math.pow(10,this.precision),
remainder = (value - this.minValue) % step,
steppedValue = remainder > (step / 2) ? value + step - remainder : value - remainder;
......@@ -894,7 +894,7 @@ function throttle(func, wait, options) {
return Slider;
}])
.directive('rzslider', ['Slider', function(Slider)
.directive('rzslider', ['RzSlider', function(Slider)
{
return {
restrict: 'EA',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment