You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2019. It is now read-only.
Due to the dynamic nature of angularjs and ng-repeat the buttonset contents would sometimes be modified. Once the ui-jq directive called $(elm).buttonset('refresh') (via the ui-refresh mechanism) it would throw cannot call methods on button prior to initialization; attempted to call method 'widget'
After much research I determined that the radioGroup() function was not checking to make sure that all the buttons it found were in fact buttons before calling jqueryui methods on them.
My work-around simply removes the constraint via Monkey-patching:
(function($) {
'use strict';
var orig_button = $.fn.button;
$.fn.button = function(options) {
if (!$(this).is(':ui-button')) {
orig_button.call(this);
}
orig_button.call(options);
};
})(jQuery);