Commit Graph
78 Commits
Author SHA1 Message Date
Maxime Thirouin 14f997c8d1 Merge pull request #36 from pklada/refresh
Add simple refresh method and protect against links being bound more than once.
2015-01-29 07:03:16 +01:00
Peter Lada 9a86044f90 changed existing refresh method to reload. changed the data check to trigger a refresh on the element based on the already bound data attr 2015-01-28 18:27:16 -08:00
Peter Lada e6a35f38e4 attach data to pjaxified links so they can't be pjaxified twice. add simple refresh method 2015-01-21 00:11:59 -08:00
Isaac Gierard 3d50ae9131 fixed uniqueid so that it is a function as expected by index.js and elsewhere
also added test for uniqueid. only test that two calls to uniqueid return unique enties. had to modify the output slightly and added a counter to the system otherwise two back to back calls would return the same value.
2015-01-16 16:21:26 -08:00
Isaac Gierard 949d1be1a0 fixed calling parseOptions with arrayed arguments 2015-01-16 15:46:31 -08:00
Isaac Gierard a119033870 fixed some require paths also added isSupported include to index.js 2015-01-16 15:44:57 -08:00
Maxime Thirouin 482ba2c117 Merge pull request #33 from igierard/disableable-scrollTo
prevent scrollTo from being converted from false to 0
2015-01-16 06:56:25 +01:00
Isaac Gierard 7e81f791a9 fixing issues with parse-options and related tests 2014-11-20 16:21:19 -08:00
Isaac Gierard d4ba34e5ed moved options parsing into separate file and created test
moved the options paring system into it's own function so that it may be testable
2014-11-20 14:39:48 -08:00
Isaac Gierard ea7d1d2fce prevent scrollTo from being converted from false to 0
In the loadUrl function there is an explicit check for false as a means to disable the scrollTo behavior however if the scrollTo option is passed to the constructor as false the gaud statement was converting false to 0.
2014-11-18 14:45:50 -08:00
Maxime Thirouin 1d087e8b00 Add travis badge 2014-10-14 11:55:48 +02:00
Maxime Thirouin 3bc67f245c Cleanup & travis (should break) 2014-10-14 11:42:36 +02:00
Maxime Thirouin 332cd4e876 Add notes about current wip 2014-10-14 08:36:02 +02:00
Maxime Thirouin db02366324 remove todo.md
all lines opened as issues
2014-10-14 08:31:31 +02:00
Maxime Thirouin b5bf998fc6 Merge pull request #20 from MoOx/testling
Exploded & tested stuff
2014-10-14 08:27:04 +02:00
Maxime Thirouin 74e224c018 Merge wip 2014-10-14 08:24:50 +02:00
Maxime Thirouin 165532d43c Relocate all the things 2014-10-14 08:23:56 +02:00
Maxime Thirouin 414650113b Add missing switches methods (untested) 2014-10-14 08:19:44 +02:00
Maxime Thirouin a6c9b57647 Reintroduce e0d33c9e18
https://github.com/MoOx/pjax/commit/e0d33c9e18ed542cd22c5cab74ae8c061982
2e22
2014-10-14 08:16:26 +02:00
Maxime Thirouin f4e5ec254a old pjax huge file must die 2014-10-14 08:13:50 +02:00
Maxime Thirouin f1976c3a10 Remove gulp (overkill) 2014-10-14 08:11:23 +02:00
François Vaux 799dd51597 Typo 2014-10-14 08:04:22 +02:00
Maxime Thirouin 76026cf8d9 Add forEachSelectors method 2014-10-14 08:04:22 +02:00
Maxime Thirouin b6702a5ea0 Add attachLink method with test 2014-10-14 08:04:22 +02:00
Maxime Thirouin 673c483ccb Add event options as an option for the trigger function 2014-10-14 08:04:22 +02:00
Maxime Thirouin d1536eb228 Add function.bind polyfill
https://github.com/ariya/phantomjs/issues/10522
2014-10-14 08:04:22 +02:00
Maxime Thirouin 681aa74e1d Add parseDOM & (new) parseElement proto methods 2014-10-14 08:04:22 +02:00
Maxime Thirouin 3f3fa761e1 Add getElements method 2014-10-14 08:04:22 +02:00
Maxime Thirouin 0d6643cf7a Add log method 2014-10-14 08:04:22 +02:00
Maxime Thirouin 4a4fb6fbc6 Add uniqueid helper 2014-10-14 08:04:22 +02:00
Maxime Thirouin d5395c3d07 Test isSupported
kind of stupid, but I don't want to maintain a list of browser UA or
whatever.
2014-10-14 08:04:22 +02:00
Maxime Thirouin 8c05692004 Fix dispatchEvent for IE9/10/11
dispatchEvent doesn't work if element is not in the dom
This is not the silverbullet since an element can have a parent that is
not in the dom too, but to avoid dom update all the time, it should be
enough for very particular use cases (eg in my case unit test).
Maybe this should be moved into the test directly to be sure there is a
parent, we will see that later.
2014-10-14 08:04:21 +02:00
Maxime Thirouin 13b3485111 add npm run test--html for debugging 2014-10-14 08:04:21 +02:00
Maxime Thirouin b1de220555 Drop fireEvent since we are supporting IE10 2014-10-14 08:03:43 +02:00
Maxime Thirouin b4f7aceab6 history is not available before IE10
http://caniuse.com/history
2014-10-14 08:03:43 +02:00
Maxime Thirouin 1cc1aa9d04 bye README gif 2014-10-14 08:03:43 +02:00
Maxime Thirouin 52d7971dc5 Test xhr request 2014-10-14 08:03:43 +02:00
Maxime Thirouin 9ac709b5d8 Test forEachEls 2014-10-14 08:03:43 +02:00
Maxime Thirouin fa27e05606 Test executeScripts 2014-10-14 08:03:43 +02:00
Maxime Thirouin 106b14b851 Tests events (on, off, trigger) 2014-10-14 08:03:42 +02:00
Maxime Thirouin 2990f93a20 Test evalScript 2014-10-14 08:03:42 +02:00
Maxime Thirouin 5644893c59 Run testling on less browsers 2014-10-14 08:03:42 +02:00
Maxime Thirouin 7631cc92c7 Test clone method 2014-10-14 08:03:42 +02:00
Maxime Thirouin 25a725c858 ignore dist/ 2014-10-14 08:03:42 +02:00
Maxime Thirouin f93efb0c00 Add Gulp tasks 2014-10-14 08:03:42 +02:00
Maxime Thirouin cac43b7c59 Add coverage command 2014-10-14 08:03:42 +02:00
Maxime Thirouin dd590bae28 Setup testling 2014-10-14 08:00:10 +02:00
Maxime Thirouin 48376db0ef Update workflow/conventions/tools 2014-10-14 07:56:42 +02:00
Maxime Thirouin a17a6b90be v0.1.4 0.1.4 2014-10-14 07:42:56 +02:00
Maxime Thirouin 7541d82095 prepare v0.1.4 2014-10-14 07:42:35 +02:00