bixbite 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -16,36 +16,40 @@
16
16
 
17
17
  <?php if ($this->minify()) : ?>
18
18
  // Global Minified JS
19
- .script("/js/cmn/global-min.js").wait()<?php else: ?>
19
+ .script("/js/cmn/global-min.js")<?php else: ?>
20
20
  // __JS_LIB__
21
21
  .script("/js/cmn/lib/__JS_LIB_LOWERCASE__-latest.js").wait()
22
22
 
23
23
  // Global JS
24
- .script("/js/cmn/global.js").wait()<?php endif; ?><?php if (count($this->getScripts())) { echo "
25
-
26
- // Page-level Includes"; } ?>
27
-
24
+ .script("/js/cmn/global.js")<?php endif;
25
+ if (count($this->getScripts())) {
26
+ echo ".wait()"; ?>
27
+
28
+
29
+ // Page-level Includes
28
30
  <?php
29
31
 
30
- $scripts = $this->getScripts();
31
- $count = count($scripts);
32
- $i = 0;
32
+ $scripts = $this->getScripts();
33
+ $count = count($scripts);
34
+ $i = 0;
33
35
 
34
- foreach ($scripts as $script) {
35
- $i++;
36
- $output = ".script(\"$script\")";
36
+ foreach ($scripts as $script) {
37
+ $i++;
38
+ $output = ".script(\"$script\")";
37
39
 
38
- if ($count == $i) {
39
- $output .= "\n\t\t\t\n\t\t\t// Fire when everything is loaded\n\t\t\t.wait(function() {\n\t\t\t\t__PROJECT_NAMESPACE__.utils.init();\n\t\t\t});";
40
- } else {
41
- $output .= ".wait()\n\t\t\t";
42
- }
40
+ if ($count != $i) {
41
+ $output .= ".wait()\n\t\t\t";
42
+ }
43
43
 
44
- echo $output;
45
- }
46
-
47
- ?>
44
+ echo $output;
45
+ }
46
+ } ?>
47
+
48
48
 
49
+ // Fire when everything is loaded
50
+ .wait(function() {
51
+ __PROJECT_NAMESPACE__.utils.init();
52
+ });
49
53
  </script>
50
54
 
51
55
  </body>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bixbite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Herrera
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-28 00:00:00 -08:00
13
+ date: 2010-07-07 00:00:00 -07:00
14
14
  default_executable: bixbite
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency