rasputin 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rasputin/version.rb +1 -1
- data/vendor/assets/javascripts/sproutcore.js +20 -15
- metadata +10 -10
data/lib/rasputin/version.rb
CHANGED
@@ -4603,11 +4603,8 @@ Binding.prototype = {
|
|
4603
4603
|
@param {String} propertyPath the property path to connect to
|
4604
4604
|
@returns {SC.Binding} receiver
|
4605
4605
|
*/
|
4606
|
-
from: function(
|
4607
|
-
if (!path) { path = object; object = null; }
|
4608
|
-
|
4606
|
+
from: function(path) {
|
4609
4607
|
this._from = path;
|
4610
|
-
this._object = object;
|
4611
4608
|
return this;
|
4612
4609
|
},
|
4613
4610
|
|
@@ -10035,6 +10032,17 @@ if (ignore.length>0) {
|
|
10035
10032
|
*/
|
10036
10033
|
SC.NativeArray = NativeArray;
|
10037
10034
|
|
10035
|
+
/**
|
10036
|
+
Creates an SC.NativeArray from an Array like object.
|
10037
|
+
Does not modify the original object.
|
10038
|
+
|
10039
|
+
@returns {SC.NativeArray}
|
10040
|
+
*/
|
10041
|
+
SC.A = function(arr){
|
10042
|
+
if (arr === undefined) { arr = []; }
|
10043
|
+
return SC.NativeArray.apply(Array.prototype.slice.apply(arr));
|
10044
|
+
};
|
10045
|
+
|
10038
10046
|
/**
|
10039
10047
|
Activates the mixin on the Array.prototype if not already applied. Calling
|
10040
10048
|
this method more than once is safe.
|
@@ -10170,10 +10178,10 @@ SC._RenderBuffer = SC.Object.extend(
|
|
10170
10178
|
init: function() {
|
10171
10179
|
this._super();
|
10172
10180
|
|
10173
|
-
set(this ,'elementClasses', SC.
|
10181
|
+
set(this ,'elementClasses', SC.A());
|
10174
10182
|
set(this, 'elementAttributes', {});
|
10175
10183
|
set(this, 'elementStyle', {});
|
10176
|
-
set(this, 'childBuffers', SC.
|
10184
|
+
set(this, 'childBuffers', SC.A());
|
10177
10185
|
set(this, 'elements', {});
|
10178
10186
|
},
|
10179
10187
|
|
@@ -10736,7 +10744,7 @@ var getPath = SC.getPath, meta = SC.meta, fmt = SC.String.fmt;
|
|
10736
10744
|
var childViewsProperty = SC.computed(function() {
|
10737
10745
|
var childViews = get(this, '_childViews');
|
10738
10746
|
|
10739
|
-
var ret = SC.
|
10747
|
+
var ret = SC.A();
|
10740
10748
|
|
10741
10749
|
childViews.forEach(function(view) {
|
10742
10750
|
if (view.isVirtual) {
|
@@ -10888,7 +10896,7 @@ SC.View = SC.Object.extend(
|
|
10888
10896
|
*/
|
10889
10897
|
childViews: childViewsProperty,
|
10890
10898
|
|
10891
|
-
_childViews: SC.
|
10899
|
+
_childViews: SC.A(),
|
10892
10900
|
|
10893
10901
|
/**
|
10894
10902
|
Return the nearest ancestor that is an instance of the provided
|
@@ -11360,6 +11368,7 @@ SC.View = SC.Object.extend(
|
|
11360
11368
|
// In the interim, we will just re-render if that happens. It is more
|
11361
11369
|
// important than elements get garbage collected.
|
11362
11370
|
this.destroyElement();
|
11371
|
+
this.clearRenderedChildren();
|
11363
11372
|
},
|
11364
11373
|
|
11365
11374
|
/**
|
@@ -11765,13 +11774,13 @@ SC.View = SC.Object.extend(
|
|
11765
11774
|
// SC.RootResponder to dispatch incoming events.
|
11766
11775
|
SC.View.views[get(this, 'elementId')] = this;
|
11767
11776
|
|
11768
|
-
var childViews = SC.
|
11777
|
+
var childViews = SC.A(get(this, '_childViews').slice());
|
11769
11778
|
// setup child views. be sure to clone the child views array first
|
11770
11779
|
set(this, '_childViews', childViews);
|
11771
11780
|
|
11772
11781
|
|
11773
|
-
this.classNameBindings = SC.
|
11774
|
-
this.classNames = SC.
|
11782
|
+
this.classNameBindings = SC.A(get(this, 'classNameBindings').slice());
|
11783
|
+
this.classNames = SC.A(get(this, 'classNames').slice());
|
11775
11784
|
|
11776
11785
|
set(this, 'domManager', this.domManagerClass.create({ view: this }));
|
11777
11786
|
|
@@ -13700,10 +13709,6 @@ var get = SC.get, getPath = SC.getPath, set = SC.set, fmt = SC.String.fmt;
|
|
13700
13709
|
// is an empty string, we are printing the current context
|
13701
13710
|
// object ({{this}}) so updating it is not our responsibility.
|
13702
13711
|
if (property !== '') {
|
13703
|
-
set(bindView, 'removeObserver', function() {
|
13704
|
-
SC.removeObserver(ctx, property, invoker);
|
13705
|
-
});
|
13706
|
-
|
13707
13712
|
SC.addObserver(ctx, property, invoker);
|
13708
13713
|
}
|
13709
13714
|
} else {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rasputin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70186645512240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70186645512240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: actionpack
|
27
|
-
requirement: &
|
27
|
+
requirement: &70186645511700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.1.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70186645511700
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sprockets
|
38
|
-
requirement: &
|
38
|
+
requirement: &70186645511120 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.0.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70186645511120
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jquery-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70186645510520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '1.0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70186645510520
|
58
58
|
description: SproutCore 2.0 for the Rails asset pipeline.
|
59
59
|
email:
|
60
60
|
- paul@chavard.net
|