ember-cli-range-slider
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -45,3 +45,3 @@ import Ember from 'ember'; | ||
const { get, merge, computed } = Ember; | ||
const { merge, computed } = Ember; | ||
@@ -55,11 +55,19 @@ export default Ember.Component.extend({ | ||
ionReadOnlyOptions: computed(function(){ | ||
var ionOptions = {}; | ||
for (var pName in ionProperties){ | ||
ionOptions[pName] = this.getWithDefault(pName, ionProperties[pName]); | ||
} | ||
return ionOptions; | ||
}).readOnly(), | ||
sliderOptions: computed.readOnly(function(){ | ||
//## Update trigger: change|finish | ||
var toValue = get(this, 'to'), | ||
fromValue = get(this, 'from'), | ||
var toValue = this.get('to'), | ||
fromValue = this.get('from'), | ||
options = { | ||
to: 10, | ||
from: 100, | ||
onChange: Ember.run.bind(this, '_onSlideStart'), | ||
onFinish: Ember.run.bind(this, '_onSlideStop'), | ||
to: 10, | ||
from: 100, | ||
onChange: Ember.run.bind(this, '_onSlideStart'), | ||
onFinish: Ember.run.bind(this, '_onSlideStop'), | ||
}; | ||
@@ -74,3 +82,3 @@ | ||
merge(options, get(this, 'ionReadOnlyOptions')); | ||
merge(options, this.get('ionReadOnlyOptions')); | ||
return options; | ||
@@ -81,3 +89,3 @@ }), | ||
didInsertElement(){ | ||
var options = get(this, 'sliderOptions'); | ||
var options = this.get('sliderOptions'); | ||
this.$().ionRangeSlider(options); | ||
@@ -84,0 +92,0 @@ this._slider = this.$().data('ionRangeSlider'); |
{ | ||
"name": "ember-cli-range-slider", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A different ember-cli addon for the ion.rangeslider jquery component. This also takes a bit from the ember-cli-ion-rangeslider addon and provides a data-down action-up implementation.", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173913
3378