[bug] spinner, min and max values gives errors

jQuery UI Widgets
Post Reply
rubus
Posts: 517
Joined: 01 Oct 2010, 09:41
Location: Belgium

01 Mar 2013, 17:04

Hello,

When you specify min and/or max values for the spinner widget, you get an error in the console. However, the functionality isn't affected (because of error, normal processing is disrupted)

Error:

Code: Select all

this.cfg is undefined
This is due to the assignments in _spin function (this.cfg must become this.options)

Code: Select all

        _spin: function(step) {
            var newValue = this.value + step;

            if(this.options.min != undefined && newValue < this.options.min) {
                newValue = this.cfg.min;
            }

            if(this.options.max != undefined && newValue > this.options.max) {
                newValue = this.cfg.max;
            }

            this.element.val(newValue).attr('aria-valuenow', newValue);
            this.value = newValue;

            this.element.trigger('change');
        },
Thx
Rudy
PrimeFaces version 3.5, Tomcat 7, Mojarra 2.1.13
PrimeFaces version 4.0, Glassfish 4.0
PrimeFaces version 5.0, WLS 12.1.2
If you haven't read the forum rules read them now : viewtopic.php?f=3&t=1194

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests