savagery 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/savagery/ember.js +4 -3
- data/lib/savagery/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b7ef6036d3496e74700f2cf41b5a81f4a4121a
|
4
|
+
data.tar.gz: a44c03cdcaeef64b60f2bd8d4284822d9f562d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01bc693bfa897b445814430601206699f9b832a6a6f0cbdc6966e3c16d53139665a683ef25a104c00248f403f9ab8fd270e2696baaa42e49410a7418c35352f
|
7
|
+
data.tar.gz: 8b3d30ec446df9d21aaece3ce7f38349bfc07d6e9f7309286e803b1458b4dc6d52a435992ac502f62b3aa688dba9525fcb009258d3217d131198cfc6849ff7fa
|
@@ -18,13 +18,14 @@ Savagery = {
|
|
18
18
|
|
19
19
|
_svgSpritesIncluded: {},
|
20
20
|
|
21
|
-
emberHelper: function(
|
21
|
+
emberHelper: function(params, hash) {
|
22
|
+
var name = params[0];
|
22
23
|
var names = name.split("/");
|
23
24
|
var dirname = names[0];
|
24
25
|
var basename = names[1];
|
25
26
|
Savagery.svgSpriteInclude(dirname);
|
26
27
|
|
27
|
-
var cssClass =
|
28
|
+
var cssClass = hash["class"];
|
28
29
|
var html = Savagery.svgSpriteUse(basename, cssClass);
|
29
30
|
return new Ember.Handlebars.SafeString(html);
|
30
31
|
}
|
@@ -34,7 +35,7 @@ Ember.Application.initializer({
|
|
34
35
|
name: "savagery-helpers",
|
35
36
|
|
36
37
|
initialize: function(container, application) {
|
37
|
-
application.register("helper:svg-sprite-use", Savagery.emberHelper);
|
38
|
+
application.register("helper:svg-sprite-use", Ember.Helper.helper(Savagery.emberHelper));
|
38
39
|
}
|
39
40
|
});
|
40
41
|
|
data/lib/savagery/version.rb
CHANGED