73 Commits

Author SHA1 Message Date
xiaoping
b625cc9ca7 Feature supported (#45)
* Update: optimize Visibility.isSupported() method

* Fix: isSupported method
2018-08-30 14:04:17 -04:00
Andrey Sitnik
175005edd2 Remove another Ruby file 2018-05-22 02:53:02 +03:00
Andrey Sitnik
5d4185e3ea Remove other ways to install library 2018-05-22 02:43:40 +03:00
Andrey Sitnik
cf81934dd8 Reduce project size 2018-05-22 02:20:59 +03:00
Chris Thoburn
9a9bc23709 [BUGFIX] use Visibility polyfill when required (#39)
For instance, in headless Chrome
2018-05-22 02:18:22 +03:00
Mikhail Vazhnov
2384969246 fixed issue #24 'Race condition on visibility change and Visibility.stop(timer) call in callback' 2016-08-30 23:53:01 +03:00
DM
055a48020d Fix Rails integration 2016-03-03 17:49:04 -08:00
Waseem Sadiq
47212cf1c2 Re-adding the install method for non-rails sprockets compatiiblity 2016-02-22 14:22:13 +01:00
Waseem Sadiq
9c77c57970 Update visibilityjs.rb
Fixed compatibility with Rails 4.2
2016-02-22 14:12:09 +01:00
Andrey Sitnik
34a9bc5e7a Fix document getter for npm 2014-02-28 17:11:46 +04:00
Andrey Sitnik
ecaa6bb6cb Decrease file size 2014-02-28 01:12:12 +04:00
Andrey Sitnik
f9f0c5ca9c Better compress fallbacks 2014-02-28 00:45:27 +04:00
Andrey Sitnik
00f156e2ce Clean timers code 2014-02-28 00:05:43 +04:00
Andrey Sitnik
f955629a87 Fix browser usages after CommonJS 2014-02-27 23:59:38 +04:00
Andrey Sitnik
65c12e1d99 Visibility.hidden() always return boolean 2014-02-27 23:47:21 +04:00
Andrey Sitnik
5f610d5a71 Add CommonJS API 2014-02-27 23:46:14 +04:00
Andrey Sitnik
f86a8342e8 Another size reduce 2014-02-27 06:23:59 +04:00
Andrey Sitnik
32db381454 Reduce code size 2014-02-27 06:18:06 +04:00
Andrey Sitnik
193e9c3093 Fix Rails integration 2014-02-27 05:42:45 +04:00
Andrey Sitnik
9c55d184a4 Allow to use Visibility.js from master by Ruby Bundler 2014-02-27 05:21:07 +04:00
Andrey Sitnik
183128069d Fix indentation in timers 2014-01-05 00:33:39 +01:00
Andrey Sitnik
af2e07668a Fix missing semicolon 2014-01-05 00:33:27 +01:00
Andrey Sitnik
2811b756e0 Prevent to call every too fast on visibility change 2014-01-05 00:18:10 +01:00
Andrey Sitnik
8b5f2b210d Clean up code 2014-01-04 22:21:14 +01:00
Andrey Sitnik
4d385b96eb Reduce timers property names size 2014-01-04 16:03:11 +01:00
Andrey Sitnik
4c10c6fcc5 Remove unnecessary _setTimeout wrap 2014-01-04 15:50:23 +01:00
Andrey Sitnik
fe24afadfd Reduce library size by smaller property names 2014-01-04 15:41:14 +01:00
Andrey Sitnik
2ec2552738 Clean fallback from outdated prefix 2014-01-04 15:16:57 +01:00
Andrey A.I. Sitnik
cd291157a5 Change license to MIT 2013-09-25 14:18:10 +04:00
Andrey A.I. Sitnik
3c15adf1d2 Remove jQuery.Chrono integration 2013-08-11 15:44:03 +04:00
Andrey A.I. Sitnik
48a8eef38b Remove Firefox prefix and clean up code 2013-08-11 15:34:08 +04:00
Andrey A.I. Sitnik
7aac86e789 Fix compression for timers file 2012-11-13 02:54:51 +07:00
Andrey A.I. Sitnik
70320d1b6d Remove unnecessary prefixes from fallback 2012-11-13 02:39:03 +07:00
Andrey A.I. Sitnik
6a588f0e55 Decrease files size 2012-11-11 11:09:06 +07:00
Andrey A.I. Sitnik
1bc3bd47f6 Fix onVisible example 2012-11-08 20:22:10 +07:00
Andrey A.I. Sitnik
e792ffa4b5 Remove unnecessary vendor prefixes 2012-11-07 15:05:01 +07:00
Andrey A.I. Sitnik
9690aefa4e Add unbind usage to onVisible/afterPrerendering code documentation 2012-09-25 17:50:43 +04:00
Andrey A.I. Sitnik
a2f515aa2b Return false in onVisible and afterPrerendered if API is not supported 2012-09-25 17:11:10 +04:00
mcfedr
67c51a3a7a Return listener in onVisible
This will let you use unbind to remove the listener
2012-09-25 14:59:06 +03:00
Andrey A.I. Sitnik
147a64e503 Fix timers init 2012-07-06 03:17:42 +04:00
Andrey A.I. Sitnik
6fb36c4cc5 Clean up code 2012-07-06 00:59:06 +04:00
Andrey A.I. Sitnik
24a4852e27 Typo 2012-07-06 00:37:46 +04:00
Andrey A.I. Sitnik
c7f6add8ab Use common change callback and unbind in onVisible and afterPrerendering 2012-07-02 16:33:16 +04:00
Andrey A.I. Sitnik
7dd8d741bf Allow to unbind change listener 2012-07-02 16:21:59 +04:00
Andrey A.I. Sitnik
ef859e73e8 Split library to core and timers module 2012-07-02 16:07:55 +04:00
Andrey A.I. Sitnik
8f2db117f0 Use Cake, CoffeeScript, Mocha, Chai and Sinon.JS 2012-05-19 13:00:22 +02:00
Andrey A.I. Sitnik
caaf93926c Remove trailing spaces 2012-03-16 04:49:45 +04:00
Andrey A.I. Sitnik
c220775802 Add Firefox support info to README 2012-02-12 15:27:04 +04:00
Andrey A.I. Sitnik
f61f1fe64a Add fallback browser support by focus/blur hack 2011-09-10 17:21:23 +04:00
Andrey A.I. Sitnik
85c2757777 Fix 80 symbols limit to rows 2011-06-26 18:43:43 +04:00