bigtextjs_rails 0.1.5 → 0.1.5.1
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 +8 -8
- data/app/assets/javascripts/bigtext.js +5 -1
- data/lib/bigtextjs_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTY5MzdlMTBhZTJiNTVmODg3YmE0NTc1ZDcxY2RjYjc5YjY0YTllMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjBlMWRmMjk1MDEwMDYzZTExMzBhZDk3NGEzMGYzYjI4MTRlZjQ1Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2EyYTE4YjFlM2EwZGI0ZTdjNGRjZDQ3NGNkMjljNzU4MGQ5M2UyOGY0Y2M1
|
10
|
+
YTFjYjU1ZWMzZjI4NzM5MjdlNmJlYzNiN2M4NTdkNTYwOGVlMDQ1Yzc3YzMw
|
11
|
+
YzBjNjM1M2QxNWU1ZmIyY2JhZmI5YzFiMTYzMDZjNWY2Njc3MGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjViZWVhYTBlNmFhZTI5OWYzMWJmMWFjZjZjZDFhZTU3ZmQ3ZjYzOWNkZGQw
|
14
|
+
YTFjZTVlYzMxOWJmM2E5YjRhNGFlNGIyYmI3YWJmZjUyMDliYTA1Njc4OTY0
|
15
|
+
ZjliZGI4ZDAwYmRhMGI5MTQwNGJkZTVkMzYzZDc0NWI5YzlkZWM=
|
@@ -51,6 +51,8 @@
|
|
51
51
|
if($.fn.smartresize) {
|
52
52
|
// https://github.com/lrbabe/jquery-smartresize/
|
53
53
|
eventName = 'smartresize.' + eventName;
|
54
|
+
} else if(_.debounce) {
|
55
|
+
resizeFunction = _.debounce(resizeFunction, 200);
|
54
56
|
}
|
55
57
|
$(window).unbind(eventName).bind(eventName, resizeFunction);
|
56
58
|
}
|
@@ -95,7 +97,7 @@
|
|
95
97
|
resize: true
|
96
98
|
}, options || {});
|
97
99
|
|
98
|
-
|
100
|
+
this.each(function()
|
99
101
|
{
|
100
102
|
var $t = $(this).addClass('bigtext'),
|
101
103
|
maxWidth = $t.width(),
|
@@ -127,6 +129,8 @@
|
|
127
129
|
var sizes = calculateSizes($t, $children, maxWidth, options.maxfontsize, options.minfontsize);
|
128
130
|
$headCache.append(BigText.generateCss(id, sizes.fontSizes, sizes.wordSpacings, sizes.minFontSizes));
|
129
131
|
});
|
132
|
+
|
133
|
+
return this.trigger('bigtext:complete');
|
130
134
|
}
|
131
135
|
};
|
132
136
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigtextjs_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.5
|
4
|
+
version: 0.1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Israeli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|