shared_mustache 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module SharedMustache
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -81,7 +81,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
81
81
  var templateName;
82
82
 
83
83
  if (partialsLoaded === false){
84
- if(typeof templates === "undefined"){
84
+ if(typeof window.templates === "undefined"){
85
85
  $('script[type="text/mustache"]').each(function(i, el){
86
86
  templateName = $(el).attr('id');
87
87
  // stupid hack to turn HTML-encoded templates into strings, see:
@@ -89,10 +89,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
89
89
  cache[templateName] = $('<div />').html($(el).html().trim()).text();
90
90
  });
91
91
  }
92
- }
93
- else if (window.templates) {
94
- for(template in templates){
95
- cache[templateName] = templates[templateName];
92
+ else if (window.templates) {
93
+ for(template in templates){
94
+ cache[templateName] = templates[templateName];
95
+ }
96
96
  }
97
97
  }
98
98
  };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shared_mustache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: -2201938304553543237
105
+ hash: -340555737609719107
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: -2201938304553543237
114
+ hash: -340555737609719107
115
115
  requirements: []
116
116
  rubyforge_project:
117
117
  rubygems_version: 1.8.23