// Polyfill for Object.assign "function"!=typeof Object.assign&&(Object.assign=function(a,b){"use strict";if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d>>0;if("function"!=typeof r)throw new TypeError(r+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=new Array(i),o=0;o>>0;if("function"!=typeof r)throw new TypeError;for(arguments.length>1&&(e=t),n=0;n>>0,o=arguments[1],e=0;e>>0;if("function"!=typeof r)throw new TypeError;for(var i=[],o=arguments.length>=2?arguments[1]:void 0,n=0;n>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(arguments.length>1&&(c=b),d=0;d>>0;if(0===n)return!1;for(var i=0|t,o=Math.max(i>=0?i:n-Math.abs(i),0);o 2; if (!multipleControls) { group.children[1].size.width = maxValueWidth; } }); window.layout.layout(true); }; // Handle animation controls.animateButton.onClick = function() { // TODO: validate app.beginUndoGroup('Rhubarb Lip-Sync'); window.close(); // TODO: animate app.endUndoGroup(); }; // Handle cancelation controls.cancelButton.onClick = function() { window.close(); }; return window; } createDialogWindow().show();