The concat method doesn’t change the original array, you need to reassign it.
if ( ref instanceof Array )
this.refs = this.refs.concat( ref );
else
this.refs.push( ref );
More Related Contents:
- How to add class to div based on radio button selected in it?
- How can I custom-format the Autocomplete plug-in results?
- putting datepicker() on dynamically created elements – JQuery/JQueryUI
- Long Press in JavaScript?
- How to use source: function()… and AJAX in JQuery UI autocomplete
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- Is it possible to save HTML page as PDF using JavaScript or jquery?
- $(document).ready(function() VS $(function(){ [duplicate]
- Passing data to a jQuery UI Dialog
- How to change date format (MM/DD/YY) to (YYYY-MM-DD) in date picker
- jQuery Drag/Resize with CSS Transform Scale
- Apply jQuery datepicker to multiple instances
- Is there a full working example for a jqGrid ColumnChooser? [closed]
- Vertical Tabs with JQuery?
- jQuery UI autocomplete with item and id
- Change CSS properties on click
- How to get the date from jQuery UI datepicker
- Check if date is in the past Javascript
- Disable future dates after today in Jquery Ui Datepicker
- Custom “confirm” dialog in JavaScript?
- jQuery Datepicker: Prevent closing picker when clicking a date
- JQuery – animate moving DOM element to new parent?
- Autocomplete requires you to click twice in iOS after update to 1.11.0
- JQuery UI Tabs Causing Screen to “Jump”
- How to change tabs programmatically in jquery-ui 1.9?
- script order for jquery with bootstrap
- Highcharts – Keep tooltip showing on click
- Programmatically drag and drop element onto another element
- Remove Datepicker Function dynamically
- Returning value from confirmation dialog using JQuery UI dialog