tao_on_rails 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 054d7f7b3d597469a7446210cb71d806dff12c7a
4
- data.tar.gz: fd4045f9d1f818f5d370b0c578ef1015b5a72d5d
3
+ metadata.gz: b26d706bce178808560079b9a49cf74f9d02edda
4
+ data.tar.gz: f4a587651da8c33d9f91d6d4bce10716e2033f65
5
5
  SHA512:
6
- metadata.gz: a7fa880098b3ad2a001c0f41993ca5c07baff065a40a8adc21c6317ca78458446d51b56361b8e2afa8f1768b9d9304d8eb036f315cf075cea09f6563996d6c97
7
- data.tar.gz: 100d15fdfdafa2d390719cc5ce0da7ab41fe0713015d0b8419572e048b53dafea66bc5d0f4282878efb4a4bf1f6d34bea87ddddba33fac67133a83b66e7bad4c
6
+ metadata.gz: 377902a5aa7a3e1a4cfafe8018068ef8d6a1a677fceb2f72bd52c75aec744f90e990a63242cb2e9c7f748473668d1854296dce5fd57c0da5a2ce9ec50f3961e6
7
+ data.tar.gz: 77544f7194501a644404642de1c6ddbb4d74f5a120af18e46821f74814fcd95f23e11b314a454ebbc01d33899834b0c6e432bea15fc7f6bfc857a1a96ebf8e23
data/.blade.yml CHANGED
@@ -25,15 +25,13 @@ plugins:
25
25
  browsers:
26
26
  Google Chrome:
27
27
  os: Mac, Windows
28
- version: -2
28
+ version: -1
29
29
  Firefox:
30
30
  os: Mac, Windows
31
- version: -2
31
+ version: -1
32
32
  Safari:
33
33
  platform: Mac
34
- version: -3
35
- Microsoft Edge:
36
- version: -2
34
+ version: -1
37
35
  iPhone:
38
36
  version: [9.3]
39
37
  Motorola Droid 4 Emulator:
data/dist/tao.js CHANGED
@@ -27712,6 +27712,10 @@ return jQuery;
27712
27712
  slice = [].slice;
27713
27713
 
27714
27714
  TaoModule = (function() {
27715
+ var id;
27716
+
27717
+ id = 0;
27718
+
27715
27719
  TaoModule.extend = function(obj) {
27716
27720
  var key, ref, val;
27717
27721
  if (!(obj && typeof obj === 'object')) {
@@ -27793,6 +27797,7 @@ return jQuery;
27793
27797
  if (options == null) {
27794
27798
  options = {};
27795
27799
  }
27800
+ this.id = ++id;
27796
27801
  this._attributes = {};
27797
27802
  if (typeof options === 'object') {
27798
27803
  for (key in options) {
@@ -27877,7 +27882,7 @@ return jQuery;
27877
27882
  };
27878
27883
 
27879
27884
  TaoApplication.prototype._initI18n = function() {
27880
- if (I18n && this.locale) {
27885
+ if (window.I18n && this.locale) {
27881
27886
  return I18n.locale = this.locale;
27882
27887
  }
27883
27888
  };
@@ -22,7 +22,7 @@ class TaoApplication extends TaoModule
22
22
  $(@).removeClass 'disabled'
23
23
 
24
24
  _initI18n: ->
25
- I18n.locale = @locale if I18n && @locale
25
+ I18n.locale = @locale if window.I18n && @locale
26
26
 
27
27
  _initIcons: ($page) ->
28
28
  $icons = $page.siblings('#tao-icons')
@@ -1,5 +1,7 @@
1
1
  class TaoModule
2
2
 
3
+ id = 0
4
+
3
5
  @extend: (obj) ->
4
6
  unless obj and typeof obj == 'object'
5
7
  throw new Error('TaoModule.extend: param should be an object')
@@ -44,6 +46,7 @@ class TaoModule
44
46
  @["_#{name}Changed"]?()
45
47
 
46
48
  constructor: (options = {}) ->
49
+ @id = ++id
47
50
  @_attributes = {}
48
51
 
49
52
  if typeof options == 'object'
@@ -1,5 +1,5 @@
1
1
  module TaoOnRails
2
2
  module Rails
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tao_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siyuan Liu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-29 00:00:00.000000000 Z
12
+ date: 2017-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: turbolinks