js_stack 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42d604913131f08575650d7bdbf629b82682bb9a
|
4
|
+
data.tar.gz: 9d604301284dd5445aa1c79a641752e619905f68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90c618b3ba5a4a7b714ba2ca0bbae5f74be5d208e115c5d4299cd71e91f2670c7e142c6e976ad8d7308a97346cbf843b7d6fce044dd9de66e3855eddc6822d7
|
7
|
+
data.tar.gz: 67325422efa348003c999fe1ac04efe29361f98502586be15942f794a4bb525e7725fedc8df210cb62ee0283acb7bd06170e360d056a53e67b62148f3cff8a06
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -53,10 +53,10 @@ Examples:
|
|
53
53
|
| Library | Versions | Changelog | Homepage |
|
54
54
|
| :-----: | :------: | :-------: | :------: |
|
55
55
|
| backbone | **1.1.2**, 1.0.0 | [changelog](http://backbonejs.org/#changelog) | [homepage](http://backbonejs.org/) |
|
56
|
-
| marionette | **1.8.
|
56
|
+
| marionette | **1.8.8**, 1.7.4, 1.6.4, 1.5.1, 1.4.1, 1.1.0 | [changelog](https://github.com/marionettejs/backbone.marionette/blob/master/changelog.md) | [homepage](http://marionettejs.com/) |
|
57
57
|
| underscore | **1.6.0**, 1.5.2 | [changelog](http://underscorejs.org/#changelog) | [homepage](http://underscorejs.org/) |
|
58
58
|
| hamlcoffee | **1.16** | [changelog](https://github.com/netzpirat/haml_coffee_assets/blob/master/CHANGELOG.md) | [homepage](https://github.com/netzpirat/haml_coffee_assets) |
|
59
|
-
| js-routes | **0.9.
|
59
|
+
| js-routes | **0.9.8** | none | [homepage](https://github.com/railsware/js-routes) |
|
60
60
|
|
61
61
|
### Plugins
|
62
62
|
|
@@ -72,7 +72,7 @@ Examples:
|
|
72
72
|
| backbone validation | **0.9.1**, 0.8.1 | [changelog](https://github.com/thedersen/backbone.validation#release-notes) | [homepage](https://github.com/thedersen/backbone.validation) | Yes
|
73
73
|
| backbone virtualcollection | **0.4.15** | [changelog](https://github.com/p3drosola/Backbone.VirtualCollection#changelog) | [homepage](https://github.com/p3drosola/Backbone.VirtualCollection) | Yes
|
74
74
|
| cocktail | **0.5.3** | none | [homepage](https://github.com/onsi/cocktail) | No
|
75
|
-
| momentjs | **2.
|
75
|
+
| momentjs | **2.7.0** | [changelog](https://github.com/moment/moment/#changelog) | [homepage](https://github.com/derekprior/momentjs-rails) | No
|
76
76
|
| underscore inflections | **0.2.1** | none | [homepage](https://github.com/geetarista/underscore.inflections) | No
|
77
77
|
| underscore string | **2.3.2** | [changelog](https://github.com/epeli/underscore.string#changelog) | [homepage](http://epeli.github.io/underscore.string/) | No
|
78
78
|
> Default: library is included in `js_stack/plugins`
|
data/lib/js_stack/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// MarionetteJS (Backbone.Marionette)
|
2
2
|
// ----------------------------------
|
3
|
-
// v1.8.
|
3
|
+
// v1.8.8
|
4
4
|
//
|
5
5
|
// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
|
6
6
|
// Distributed under MIT license
|
@@ -964,7 +964,12 @@ _.extend(Marionette.Region.prototype, Backbone.Events, {
|
|
964
964
|
|
965
965
|
view.render();
|
966
966
|
Marionette.triggerMethod.call(this, "before:show", view);
|
967
|
-
|
967
|
+
|
968
|
+
if (_.isFunction(view.triggerMethod)) {
|
969
|
+
view.triggerMethod("before:show");
|
970
|
+
} else {
|
971
|
+
Marionette.triggerMethod.call(view, "before:show");
|
972
|
+
}
|
968
973
|
|
969
974
|
if (isDifferentView || isViewClosed) {
|
970
975
|
this.open(view);
|
@@ -973,7 +978,14 @@ _.extend(Marionette.Region.prototype, Backbone.Events, {
|
|
973
978
|
this.currentView = view;
|
974
979
|
|
975
980
|
Marionette.triggerMethod.call(this, "show", view);
|
976
|
-
|
981
|
+
|
982
|
+
if (_.isFunction(view.triggerMethod)) {
|
983
|
+
view.triggerMethod("show");
|
984
|
+
} else {
|
985
|
+
Marionette.triggerMethod.call(view, "show");
|
986
|
+
}
|
987
|
+
|
988
|
+
return this;
|
977
989
|
},
|
978
990
|
|
979
991
|
ensureEl: function(){
|
@@ -1604,7 +1616,11 @@ Marionette.CollectionView = Marionette.View.extend({
|
|
1604
1616
|
_triggerShowBufferedChildren: function () {
|
1605
1617
|
if (this._isShown) {
|
1606
1618
|
_.each(this._bufferedChildren, function (child) {
|
1607
|
-
|
1619
|
+
if (_.isFunction(child.triggerMethod)) {
|
1620
|
+
child.triggerMethod('show');
|
1621
|
+
} else {
|
1622
|
+
Marionette.triggerMethod.call(child, 'show');
|
1623
|
+
}
|
1608
1624
|
});
|
1609
1625
|
this._bufferedChildren = [];
|
1610
1626
|
}
|
@@ -1632,7 +1648,11 @@ Marionette.CollectionView = Marionette.View.extend({
|
|
1632
1648
|
// of child views is called.
|
1633
1649
|
onShowCalled: function(){
|
1634
1650
|
this.children.each(function(child){
|
1635
|
-
|
1651
|
+
if (_.isFunction(child.triggerMethod)) {
|
1652
|
+
child.triggerMethod('show');
|
1653
|
+
} else {
|
1654
|
+
Marionette.triggerMethod.call(child, 'show');
|
1655
|
+
}
|
1636
1656
|
});
|
1637
1657
|
},
|
1638
1658
|
|
@@ -1758,7 +1778,11 @@ Marionette.CollectionView = Marionette.View.extend({
|
|
1758
1778
|
// call the "show" method if the collection view
|
1759
1779
|
// has already been shown
|
1760
1780
|
if (this._isShown && !this.isBuffering){
|
1761
|
-
|
1781
|
+
if (_.isFunction(view.triggerMethod)) {
|
1782
|
+
view.triggerMethod('show');
|
1783
|
+
} else {
|
1784
|
+
Marionette.triggerMethod.call(view, 'show');
|
1785
|
+
}
|
1762
1786
|
}
|
1763
1787
|
|
1764
1788
|
// this view was added
|
@@ -2272,7 +2296,6 @@ Marionette.Behaviors = (function(Marionette, _) {
|
|
2272
2296
|
Behaviors.wrap(view, this.behaviors, [
|
2273
2297
|
'bindUIElements', 'unbindUIElements',
|
2274
2298
|
'delegateEvents', 'undelegateEvents',
|
2275
|
-
'onShow', 'onClose',
|
2276
2299
|
'behaviorEvents', 'triggerMethod',
|
2277
2300
|
'setElement', 'close'
|
2278
2301
|
]);
|
@@ -2301,30 +2324,6 @@ Marionette.Behaviors = (function(Marionette, _) {
|
|
2301
2324
|
_.invoke(behaviors, 'close', args);
|
2302
2325
|
},
|
2303
2326
|
|
2304
|
-
onShow: function(onShow, behaviors) {
|
2305
|
-
var args = _.tail(arguments, 2);
|
2306
|
-
|
2307
|
-
_.each(behaviors, function(b) {
|
2308
|
-
Marionette.triggerMethod.apply(b, ["show"].concat(args));
|
2309
|
-
});
|
2310
|
-
|
2311
|
-
if (_.isFunction(onShow)) {
|
2312
|
-
onShow.apply(this, args);
|
2313
|
-
}
|
2314
|
-
},
|
2315
|
-
|
2316
|
-
onClose: function(onClose, behaviors){
|
2317
|
-
var args = _.tail(arguments, 2);
|
2318
|
-
|
2319
|
-
_.each(behaviors, function(b) {
|
2320
|
-
Marionette.triggerMethod.apply(b, ["close"].concat(args));
|
2321
|
-
});
|
2322
|
-
|
2323
|
-
if (_.isFunction(onClose)) {
|
2324
|
-
onClose.apply(this, args);
|
2325
|
-
}
|
2326
|
-
},
|
2327
|
-
|
2328
2327
|
bindUIElements: function(bindUIElements, behaviors) {
|
2329
2328
|
bindUIElements.apply(this);
|
2330
2329
|
_.invoke(behaviors, bindUIElements);
|
@@ -2370,7 +2369,7 @@ Marionette.Behaviors = (function(Marionette, _) {
|
|
2370
2369
|
|
2371
2370
|
_.each(behaviors, function(b, i) {
|
2372
2371
|
var _events = {};
|
2373
|
-
var behaviorEvents = _.result(b, 'events') || {};
|
2372
|
+
var behaviorEvents = _.clone(_.result(b, 'events')) || {};
|
2374
2373
|
var behaviorUI = _.result(b, 'ui');
|
2375
2374
|
|
2376
2375
|
// Construct an internal UI hash first using
|
@@ -1 +1 @@
|
|
1
|
-
//= require js_stack/base/marionette/1.8.
|
1
|
+
//= require js_stack/base/marionette/1.8.8
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js_stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Pewiński
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml_coffee_assets
|
@@ -112,7 +112,7 @@ files:
|
|
112
112
|
- vendor/assets/javascripts/js_stack/base/marionette/1.5.1.js
|
113
113
|
- vendor/assets/javascripts/js_stack/base/marionette/1.6.4.js
|
114
114
|
- vendor/assets/javascripts/js_stack/base/marionette/1.7.4.js
|
115
|
-
- vendor/assets/javascripts/js_stack/base/marionette/1.8.
|
115
|
+
- vendor/assets/javascripts/js_stack/base/marionette/1.8.8.js
|
116
116
|
- vendor/assets/javascripts/js_stack/base/underscore.js
|
117
117
|
- vendor/assets/javascripts/js_stack/base/underscore/1.5.2.js
|
118
118
|
- vendor/assets/javascripts/js_stack/base/underscore/1.6.0.js
|