Showing with 12 additions and 5 deletions.
  1. +4 −3 app/src/model.js
  2. +1 −1 lib/cache.js
  3. +3 −0 lib/themeroller.js
  4. +1 −1 package.json
  5. +3 −0 themeroller.js
@@ -143,6 +143,7 @@
}
});
if ( changed ) {
this.emitter.trigger( "change:before", [ changedAttributes, createdAttributes ] );
this.emitter.trigger( "change", [ changedAttributes, createdAttributes ] );
}
return this;
@@ -207,7 +208,7 @@
this.host = obj.host;
this.orderedComponentsDfd = $.Deferred();
this.themeParamsUnzipping = $.Deferred().resolve();
this.on( "change", $.proxy( this._change, this ) );
this.on( "change:before", $.proxy( this._change, this ) );
};

$.extend( DownloadBuilderModel.prototype, Model.prototype, {
@@ -381,7 +382,7 @@
Model.call( this );
this.baseVars = obj.baseVars;
this.host = obj.host;
this.on( "change", $.proxy( this._change, this ) );
this.on( "change:before", $.proxy( this._change, this ) );
};

$.extend( ThemeRollerModel.prototype, Model.prototype, {
@@ -464,7 +465,7 @@
},

parsethemeUrl: function() {
var attributes = omit( this.attributes, [ "downloadParams" ] ),
var attributes = omit( this.attributes, [ "downloadParams", "zThemeParams" ] ),
downloadParams = ( "downloadParams" in this.attributes ? QueryString.decode( this.attributes.downloadParams ) : {} );
if ( downloadParams.version ) {
attributes.version = downloadParams.version;
@@ -21,8 +21,8 @@ cacheCron = function() {
});

logger.log( cache.name + " Cleanup:", count );
cacheCronTimeout = setTimeout( cacheCron, cacheExpiresTime );
});
cacheCronTimeout = setTimeout( cacheCron, cacheExpiresTime );
};

Cache = function( name ) {
@@ -97,6 +97,9 @@ function ThemeRoller( options ) {
delete vars.name;
delete vars.scope;
}
if ( vars && vars.zThemeParams ) {
throw new Error( "vars.zThemeParams unsupported at the moment. Unzipped vars only. (or need to make ThemeRoller async)" );
}
if ( options.jqueryUi instanceof JqueryUi ) {
this.jqueryUi = options.jqueryUi;
} else if ( options.version ) {
@@ -1,6 +1,6 @@
{
"name": "download.jqueryui.com",
"version": "1.10.3-5",
"version": "1.10.3-6",
"dependencies": {
"archiver": "0.4.1",
"async": "0.1.22",
@@ -42,6 +42,9 @@ var Frontend = function( args ) {

Frontend.prototype = {
index: function( vars, options ) {
if ( vars && "zThemeParams" in vars ) {
delete vars.zThemeParams;
}
var theme = new ThemeRoller({
vars: vars
});