Skip to content

Commit

Permalink
No need for Bckbone compatibility-hack
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMadejski committed May 4, 2015
1 parent a825554 commit d0b553d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 35 deletions.
14 changes: 1 addition & 13 deletions dist/lib/backbone-min.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions dist/swagger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -20695,7 +20695,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
},
initialize: function(opts){
var sorterOption, sorterFn, key, value;
opts = opts || {};
this.options = opts = opts || {};

this.router = opts.router;

Expand Down Expand Up @@ -20838,7 +20838,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
},

initialize: function(opts) {
opts = opts || {};
this.options = opts = opts || {};
this.router = opts.router;
this.auths = opts.auths;
this.parentId = this.model.parentId;
Expand Down Expand Up @@ -21512,7 +21512,8 @@ SwaggerUi.Views.ParameterContentTypeView = Backbone.View.extend({
'use strict';

SwaggerUi.Views.ParameterView = Backbone.View.extend({
initialize: function(){
initialize: function(opts){
this.options = opts || {};
Handlebars.registerHelper('isArray', function(param, opts) {
if (param.type.toLowerCase() === 'array' || param.allowMultiple) {
opts.fn(this);
Expand Down Expand Up @@ -21614,7 +21615,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({

SwaggerUi.Views.ResourceView = Backbone.View.extend({
initialize: function(opts) {
opts = opts || {};
this.options = opts = opts || {};
this.router = opts.router;
this.auths = opts.auths;
if ('' === this.model.description) {
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui.min.js

Large diffs are not rendered by default.

14 changes: 1 addition & 13 deletions lib/backbone-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/javascript/view/MainView.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
},
initialize: function(opts){
var sorterOption, sorterFn, key, value;
opts = opts || {};
this.options = opts = opts || {};

this.router = opts.router;

Expand Down
2 changes: 1 addition & 1 deletion src/main/javascript/view/OperationView.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
},

initialize: function(opts) {
opts = opts || {};
this.options = opts = opts || {};
this.router = opts.router;
this.auths = opts.auths;
this.parentId = this.model.parentId;
Expand Down
3 changes: 2 additions & 1 deletion src/main/javascript/view/ParameterView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict';

SwaggerUi.Views.ParameterView = Backbone.View.extend({
initialize: function(){
initialize: function(opts){
this.options = opts || {};
Handlebars.registerHelper('isArray', function(param, opts) {
if (param.type.toLowerCase() === 'array' || param.allowMultiple) {
opts.fn(this);
Expand Down
2 changes: 1 addition & 1 deletion src/main/javascript/view/ResourceView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SwaggerUi.Views.ResourceView = Backbone.View.extend({
initialize: function(opts) {
opts = opts || {};
this.options = opts = opts || {};
this.router = opts.router;
this.auths = opts.auths;
if ('' === this.model.description) {
Expand Down

0 comments on commit d0b553d

Please sign in to comment.