emerson 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/emerson/version.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
}
|
22
22
|
|
23
23
|
// Current version of the library. Keep in sync with `package.json`.
|
24
|
-
Emerson.VERSION = '0.0.
|
24
|
+
Emerson.VERSION = '0.0.10';
|
25
25
|
|
26
26
|
// Reference the base lib (one of jQuery, Zepto or Ender) as $.
|
27
27
|
var $ = Emerson.base = (root.jQuery || root.Zepto || root.ender);
|
@@ -126,6 +126,8 @@
|
|
126
126
|
// and Trait definitions with somewhat flexible DOM. Rather than using
|
127
127
|
// specific selectors (or polluting the `class` attribute), the DOM for
|
128
128
|
// a given instance indicates which nodes should match for the View.
|
129
|
+
//
|
130
|
+
// thanks to Nathan Sobo for the idea: https://github.com/nathansobo/space-pen
|
129
131
|
_.extend(View.prototype, {
|
130
132
|
connect : function(config) {
|
131
133
|
var self = this;
|
@@ -134,9 +136,10 @@
|
|
134
136
|
if(config === true) {
|
135
137
|
_.each(outlets, function(subject) {
|
136
138
|
var outlet = $(subject);
|
139
|
+
var key = outlet.data('outlet');
|
137
140
|
|
138
141
|
self[outlet.data('outlet')] = function() {
|
139
|
-
return outlet;
|
142
|
+
return self.outlet(key);
|
140
143
|
};
|
141
144
|
});
|
142
145
|
}
|
@@ -146,7 +149,7 @@
|
|
146
149
|
|
147
150
|
if(outlet.length) {
|
148
151
|
self[key] = function() {
|
149
|
-
return outlet;
|
152
|
+
return self.outlet(key);
|
150
153
|
};
|
151
154
|
}
|
152
155
|
});
|
@@ -285,11 +288,11 @@
|
|
285
288
|
// setup = def.setup;
|
286
289
|
// built = def(self, self.context);
|
287
290
|
// built.connect(setup.connected);
|
288
|
-
//
|
291
|
+
//
|
289
292
|
// _.each(setup.subscribe, function(handler, key) {
|
290
293
|
// bind(built, key, handler);
|
291
294
|
// });
|
292
|
-
//
|
295
|
+
//
|
293
296
|
// setup.initialize.call(built, mode);
|
294
297
|
set.push(id);
|
295
298
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emerson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: transcendent views
|
15
15
|
email:
|