joosy 1.2.0.alpha.18 → 1.2.0.alpha.19
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.
- checksums.yaml +4 -4
- data/bower.json +1 -1
- data/lib/joosy.js +5 -12
- data/package.json +1 -1
- data/src/joosy/core/joosy.coffee +1 -12
- data/src/joosy/core/layout.coffee +0 -1
- data/src/joosy/core/{modules/module.coffee → module.coffee} +1 -1
- data/src/joosy/core/modules/container.coffee +4 -1
- data/src/joosy/core/page.coffee +0 -1
- data/src/joosy/core/widget.coffee +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a705610250a2b75d281b073f78d86a09b5aea70
|
4
|
+
data.tar.gz: 9b83861972aaeb403e65e94c0f533701694a6e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd6e577ce1a4d8743fd11c88d0f716a2d4aa88068ef8c5e345af950c174675287f30fb3578a034c22a41dfa638313597f1004aa44635fc517c6de6f42eb9f869
|
7
|
+
data.tar.gz: 31ccd73f36009fc3ae2c34a4a4088215aa87c422c706846a9aada2a02b177a2bab50fc909e9bc9c02e43df8c325d43613156571319f9d18f4909feaf0f0c03bb
|
data/bower.json
CHANGED
data/lib/joosy.js
CHANGED
@@ -36,15 +36,6 @@ this.Joosy = {
|
|
36
36
|
helpers: function(name, generator) {
|
37
37
|
return Joosy.namespace("Joosy.Helpers." + name, generator);
|
38
38
|
},
|
39
|
-
test: function() {
|
40
|
-
var text;
|
41
|
-
text = "Hi :). I'm Joosy. And everything is just fine!";
|
42
|
-
if (console) {
|
43
|
-
return console.log(text);
|
44
|
-
} else {
|
45
|
-
return alert(text);
|
46
|
-
}
|
47
|
-
},
|
48
39
|
synchronize: function() {
|
49
40
|
var _ref;
|
50
41
|
return (_ref = Joosy.Modules.Events).synchronize.apply(_ref, arguments);
|
@@ -98,9 +89,9 @@ this.Joosy = {
|
|
98
89
|
};
|
99
90
|
|
100
91
|
|
101
|
-
/*** src/joosy/core/
|
92
|
+
/*** src/joosy/core/module ***/
|
102
93
|
|
103
|
-
Joosy.Module = (function() {
|
94
|
+
this.Joosy.Module = (function() {
|
104
95
|
function Module() {}
|
105
96
|
|
106
97
|
Module.__namespace__ = [];
|
@@ -543,7 +534,7 @@ Joosy.Modules.Container = {
|
|
543
534
|
},
|
544
535
|
refreshElements: function() {
|
545
536
|
var _this = this;
|
546
|
-
this.__assignElements(
|
537
|
+
this.__assignElements();
|
547
538
|
if (this.hasOwnProperty("__onRefreshes")) {
|
548
539
|
this.__onRefreshes.each(function(callback) {
|
549
540
|
return callback.apply(_this);
|
@@ -553,6 +544,8 @@ Joosy.Modules.Container = {
|
|
553
544
|
},
|
554
545
|
__assignElements: function(root, entries) {
|
555
546
|
var _this = this;
|
547
|
+
root || (root = this);
|
548
|
+
entries || (entries = this.__collectElements());
|
556
549
|
return Object.each(entries, function(key, value) {
|
557
550
|
if (Object.isObject(value)) {
|
558
551
|
return _this.__assignElements(root['$' + key] = {}, value);
|
data/package.json
CHANGED
data/src/joosy/core/joosy.coffee
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#= require_self
|
2
|
-
#= require joosy/core/
|
2
|
+
#= require joosy/core/module
|
3
3
|
|
4
4
|
#
|
5
5
|
# All the tiny core stuff
|
@@ -56,17 +56,6 @@
|
|
56
56
|
helpers: (name, generator) ->
|
57
57
|
Joosy.namespace "Joosy.Helpers.#{name}", generator
|
58
58
|
|
59
|
-
#
|
60
|
-
# Scary `hello world`
|
61
|
-
#
|
62
|
-
test: ->
|
63
|
-
text = "Hi :). I'm Joosy. And everything is just fine!"
|
64
|
-
|
65
|
-
if console
|
66
|
-
console.log text
|
67
|
-
else
|
68
|
-
alert text
|
69
|
-
|
70
59
|
#
|
71
60
|
# Runs set of callbacks finializing with result callback
|
72
61
|
#
|
@@ -27,13 +27,16 @@ Joosy.Modules.Container =
|
|
27
27
|
# bar: '.bar'
|
28
28
|
#
|
29
29
|
refreshElements: ->
|
30
|
-
@__assignElements
|
30
|
+
@__assignElements()
|
31
31
|
|
32
32
|
if @hasOwnProperty "__onRefreshes"
|
33
33
|
@__onRefreshes.each (callback) => callback.apply @
|
34
34
|
@__onRefreshes = []
|
35
35
|
|
36
36
|
__assignElements: (root, entries) ->
|
37
|
+
root ||= @
|
38
|
+
entries ||= @__collectElements()
|
39
|
+
|
37
40
|
Object.each entries, (key, value) =>
|
38
41
|
if Object.isObject(value)
|
39
42
|
@__assignElements root['$'+key]={}, value
|
data/src/joosy/core/page.coffee
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joosy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0.alpha.
|
4
|
+
version: 1.2.0.alpha.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Staal
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: sprockets
|
@@ -94,11 +94,11 @@ files:
|
|
94
94
|
- src/joosy/core/helpers/widgets.coffee
|
95
95
|
- src/joosy/core/joosy.coffee
|
96
96
|
- src/joosy/core/layout.coffee
|
97
|
+
- src/joosy/core/module.coffee
|
97
98
|
- src/joosy/core/modules/container.coffee
|
98
99
|
- src/joosy/core/modules/events.coffee
|
99
100
|
- src/joosy/core/modules/filters.coffee
|
100
101
|
- src/joosy/core/modules/log.coffee
|
101
|
-
- src/joosy/core/modules/module.coffee
|
102
102
|
- src/joosy/core/modules/renderer.coffee
|
103
103
|
- src/joosy/core/modules/time_manager.coffee
|
104
104
|
- src/joosy/core/modules/widgets_manager.coffee
|