Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-range-slider - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

26

addon/components/ember-range-slider.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc