Skip to content

Commit

Permalink
Fixing broken order of registry and history
Browse files Browse the repository at this point in the history
  • Loading branch information
kent.willis committed Jul 23, 2018
1 parent 48b7526 commit 6f61439
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion docs/js/files/modules_torso.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ <h1 class="file-heading">File: modules/torso.js</h1>
require(&#x27;./Model&#x27;), require(&#x27;./NestedCell&#x27;), require(&#x27;./NestedModel&#x27;), require(&#x27;./FormModel&#x27;),
require(&#x27;./ServiceCell&#x27;),
require(&#x27;./Router&#x27;),
require(&#x27;./registry&#x27;),
require(&#x27;./history&#x27;),
require(&#x27;./registry&#x27;),
require(&#x27;./View&#x27;), require(&#x27;./ListView&#x27;), require(&#x27;./FormView&#x27;),
require(&#x27;./templateRenderer&#x27;), require(&#x27;./handlebarsUtils&#x27;));
} else {
Expand Down
2 changes: 1 addition & 1 deletion modules/torso.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
require('./Model'), require('./NestedCell'), require('./NestedModel'), require('./FormModel'),
require('./ServiceCell'),
require('./Router'),
require('./registry'),
require('./history'),
require('./registry'),
require('./View'), require('./ListView'), require('./FormView'),
require('./templateRenderer'), require('./handlebarsUtils'));
} else {
Expand Down
68 changes: 34 additions & 34 deletions torso-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,40 @@
return Backbone.history;
}));

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['backbone', 'backbone.stickit'], factory);
} else if (typeof exports === 'object') {
require('backbone.stickit');
factory(require('backbone'));
} else {
factory(root.Backbone);
}
}(this, function(Backbone) {
'use strict';

/**
* Extensions to stickit handlers.
*
* @module Torso
* @namespace Torso.Utils
* @class stickitUtils
* @static
* @author [email protected], [email protected]
*/
Backbone.Stickit.addHandler({
selector: 'input[type="radio"]',
events: ['change'],
update: function($el, val) {
$el.prop('checked', false);
$el.filter('[value="' + val + '"]').prop('checked', true);
},
getVal: function($el) {
return $el.filter(':checked').val();
}
});
}));

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['underscore', 'backbone'], factory);
Expand Down Expand Up @@ -400,40 +434,6 @@
return registry;
}));

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['backbone', 'backbone.stickit'], factory);
} else if (typeof exports === 'object') {
require('backbone.stickit');
factory(require('backbone'));
} else {
factory(root.Backbone);
}
}(this, function(Backbone) {
'use strict';

/**
* Extensions to stickit handlers.
*
* @module Torso
* @namespace Torso.Utils
* @class stickitUtils
* @static
* @author [email protected], [email protected]
*/
Backbone.Stickit.addHandler({
selector: 'input[type="radio"]',
events: ['change'],
update: function($el, val) {
$el.prop('checked', false);
$el.filter('[value="' + val + '"]').prop('checked', true);
},
getVal: function($el) {
return $el.filter(':checked').val();
}
});
}));

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['underscore', 'backbone'], factory);
Expand Down
2 changes: 1 addition & 1 deletion torso-bundle.min.js

Large diffs are not rendered by default.

0 comments on commit 6f61439

Please sign in to comment.