|
1 | 1 | define([ |
2 | 2 | 'backbone', |
3 | 3 | 'Backbone.View.Elements', |
4 | | - 'underscore', |
5 | | - 'backbone.anchor/lib/anchor' |
6 | | -], function (Backbone, ElementsView, _, anchor) { |
| 4 | + 'underscore' |
| 5 | +], function (Backbone, ElementsView, _) { |
7 | 6 | 'use strict'; |
8 | 7 |
|
9 | 8 | /** |
@@ -73,35 +72,6 @@ define([ |
73 | 72 |
|
74 | 73 | this.getName = _.once(this.getName); |
75 | 74 | this._initActiveTab(); |
76 | | - this._linkWithAnchor(); |
77 | | - }, |
78 | | - |
79 | | - /** |
80 | | - * @private |
81 | | - */ |
82 | | - _linkWithAnchor: function () { |
83 | | - var name = this.getName(); |
84 | | - anchor.on('change:' + name, this._onHashChange, this); |
85 | | - if (anchor.has(name)) { |
86 | | - this._processAnchorChange(anchor.get(name)); |
87 | | - } |
88 | | - }, |
89 | | - |
90 | | - /** |
91 | | - * @param {string} tabName |
92 | | - * @protected |
93 | | - */ |
94 | | - _processAnchorChange: function (tabName) { |
95 | | - this.show(tabName); |
96 | | - }, |
97 | | - |
98 | | - /** |
99 | | - * @param {Backbone.Model} model |
100 | | - * @param {string} tabName |
101 | | - * @private |
102 | | - */ |
103 | | - _onHashChange: function (model, tabName) { |
104 | | - this._processAnchorChange(tabName); |
105 | 75 | }, |
106 | 76 |
|
107 | 77 | /** |
@@ -140,7 +110,6 @@ define([ |
140 | 110 | return this; |
141 | 111 | } |
142 | 112 | this._setActiveTab(name); |
143 | | - anchor.set(this.getName(), name); |
144 | 113 | return this; |
145 | 114 | }, |
146 | 115 |
|
|
0 commit comments