xooie 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -3
- data/vendor/assets/javascripts/xooie/helpers.js +45 -0
- metadata +5 -5
data/README.md
CHANGED
@@ -19,10 +19,10 @@ To see Xooie in action visit [Xfinity.comcast.net](http://xfinity.comcast.net).
|
|
19
19
|
|
20
20
|
Installation:
|
21
21
|
---
|
22
|
-
Setting up Xooie is as easy as dropping the Xooie directory into your codebase.
|
22
|
+
Setting up Xooie is as easy as dropping the Xooie directory into your codebase.
|
23
23
|
|
24
24
|
Xooie requires the following libraries:
|
25
|
-
* [RequireJS](http://www.requirejs.
|
25
|
+
* [RequireJS](http://www.requirejs.org)
|
26
26
|
* [jQuery](http://www.jquery.com)
|
27
27
|
* micro_tmpl.js (found in the lib directory of this project)
|
28
28
|
|
@@ -44,5 +44,5 @@ Carousel
|
|
44
44
|
Tab
|
45
45
|
(documentation coming soon!)
|
46
46
|
|
47
|
-
Dropdown
|
47
|
+
Dropdown
|
48
48
|
(documentation coming soon!)
|
@@ -14,6 +14,51 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
+
/* Polyfill methods for Xooie */
|
18
|
+
|
19
|
+
// Adds Array.prototype.indexOf functionality to IE<9 (From MDN)
|
20
|
+
if (!Array.prototype.indexOf) {
|
21
|
+
Array.prototype.indexOf = function (searchElement , fromIndex) {
|
22
|
+
var i,
|
23
|
+
pivot = (fromIndex) ? fromIndex : 0,
|
24
|
+
length;
|
25
|
+
|
26
|
+
if (!this) {
|
27
|
+
throw new TypeError();
|
28
|
+
}
|
29
|
+
|
30
|
+
length = this.length;
|
31
|
+
|
32
|
+
if (length === 0 || pivot >= length) {
|
33
|
+
return -1;
|
34
|
+
}
|
35
|
+
|
36
|
+
if (pivot < 0) {
|
37
|
+
pivot = length - Math.abs(pivot);
|
38
|
+
}
|
39
|
+
|
40
|
+
for (i = pivot; i < length; i++) {
|
41
|
+
if (this[i] === searchElement) {
|
42
|
+
return i;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
return -1;
|
46
|
+
};
|
47
|
+
}
|
48
|
+
|
49
|
+
// Adds Function.prototype.bind to browsers that do not support it
|
50
|
+
if (!Function.prototype.bind) {
|
51
|
+
Function.prototype.bind = function(context) {
|
52
|
+
var f = this,
|
53
|
+
args = Array.prototype.slice.call(arguments, 1);
|
54
|
+
|
55
|
+
return function() {
|
56
|
+
return f.apply(context, args.concat(Array.prototype.slice.call(arguments)));
|
57
|
+
};
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
|
17
62
|
/**
|
18
63
|
* class Xooie.helpers
|
19
64
|
*
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: xooie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andrew Larkin
|
@@ -10,10 +10,10 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-20 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: A highly modular, extensible JavaScript UI framework.
|
16
|
+
description: A highly modular, extensible, and accessible JavaScript UI framework.
|
17
17
|
email: andrewlarkin2@gmail.com
|
18
18
|
executables: []
|
19
19
|
|
@@ -41,7 +41,7 @@ files:
|
|
41
41
|
- lib/xooie.rb
|
42
42
|
- README.md
|
43
43
|
- License.txt
|
44
|
-
homepage: http://
|
44
|
+
homepage: http://www.xooie.net
|
45
45
|
licenses:
|
46
46
|
- Apache
|
47
47
|
post_install_message:
|
@@ -70,6 +70,6 @@ rubyforge_project:
|
|
70
70
|
rubygems_version: 1.8.9
|
71
71
|
signing_key:
|
72
72
|
specification_version: 3
|
73
|
-
summary: A highly modular, extensible JavaScript UI framework.
|
73
|
+
summary: A highly modular, extensible, and accessible JavaScript UI framework.
|
74
74
|
test_files: []
|
75
75
|
|