bigtextjs_rails 0.1.5 → 0.1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzY3ZTE4NDI3N2FlYWZhOGQ3MmYwOWJkMDZmNGE3Nzk4MTE1NTBhYg==
4
+ ZTY5MzdlMTBhZTJiNTVmODg3YmE0NTc1ZDcxY2RjYjc5YjY0YTllMQ==
5
5
  data.tar.gz: !binary |-
6
- YjdlYzFjZmNjYzZlZjhiNjQ1NmY2OTBkYzIzYTgzM2IyYTc2ZTY4Yg==
6
+ MjBlMWRmMjk1MDEwMDYzZTExMzBhZDk3NGEzMGYzYjI4MTRlZjQ1Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzhkMWIxYmFkYTlkZjY2MGYyMTRiYmNkNWI0ZThjYWU3OTY4NDczMDdiZmQ4
10
- YTYxYWJmZjM2ZGMwZDJkYmMyYzg0ZjJjZTU4Njg3N2ZmZTA2N2M2OTgyNzg2
11
- NzhiMzA1YzU3OGM0NjQ4ZTQwZjk5MTUwNWU2ZGRiZGZlODkxNWI=
9
+ M2EyYTE4YjFlM2EwZGI0ZTdjNGRjZDQ3NGNkMjljNzU4MGQ5M2UyOGY0Y2M1
10
+ YTFjYjU1ZWMzZjI4NzM5MjdlNmJlYzNiN2M4NTdkNTYwOGVlMDQ1Yzc3YzMw
11
+ YzBjNjM1M2QxNWU1ZmIyY2JhZmI5YzFiMTYzMDZjNWY2Njc3MGE=
12
12
  data.tar.gz: !binary |-
13
- ODI1MDUwOTYyMzAyMmQ0MjNhMTBmNjQxYmVkZTFjMjQwNTRkMjhjNmI2ZGNl
14
- YzQ0YzZiY2IzNTZjZmQ5NDBjZjBiNWJmNzc1ZmQzY2JjMjFjNDNiNWMwMDgx
15
- MjdmOTk4ZDNjYWRhNjdiN2E2ZjQ4NzZlNTI5NWI0Nzg1YTE4MmE=
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
- return this.each(function()
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
 
@@ -1,3 +1,3 @@
1
1
  module BigtextjsRails
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.5.1"
3
3
  end
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: 2013-10-21 00:00:00.000000000 Z
11
+ date: 2014-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler