Linus Unnebäck
7a4e56e2c5
version: 1.3.9
9 years ago
Linus Unnebäck
46d47bf655
history: 1.3.9
9 years ago
Linus Unnebäck
e1033557af
Merge pull request #706 from LinusU/allow-to-unbind-callback-handlers
Allow to unbind onload/onerror callback handlers
9 years ago
Raul Ochoa
c651227202
Allow to unbind onload/onerror callback handlers
Assigning `null` to handlers removes them, this mimic the behaviour from Google Chrome.
From Chrome's Developer Tools:
```js
> function handler(evt) { console.log('img handler: %s', evt.type); }
< undefined
> var img = document.createElement('img')
< undefined
> img.onload = handler
< handler(evt)
> img.onerror = handler
< handler(evt)
> img.src = 'https://www.google.com/images/errors/logo_sm_2.png '; true
< true
< img handler: load
> img.src = 'https://www.google.com/images/errors/logo_sm_2.png '; true
< true
< img handler: load
> img.src = 'https://example.com/404.png '; true
< true
< img handler: error
> img.src = 'https://example.com/404.png '; true
< true
< img handler: error
> img.onload = null
< null
> img.onerror = null
< null
> img.src = 'https://www.google.com/images/errors/logo_sm_2.png '; true
< true
> img.src = 'https://example.com/404.png '; true
< true
```
9 years ago
Linus Unnebäck
db0844e6b0
version: 1.3.8
9 years ago
Linus Unnebäck
f659951051
history: 1.3.8
9 years ago
Linus Unnebäck
febc2d1815
Merge pull request #701 from LinusU/build-cleanup
cleanup build scripts
9 years ago
Linus Unnebäck
283f51561e
cleanup build scripts
9 years ago
Linus Unnebäck
32c7944dde
version: 1.3.7
9 years ago
Linus Unnebäck
3df28acd58
history: 1.3.7
9 years ago
Linus Unnebäck
700d8e1643
Merge pull request #615 from CartoDB/dont-remove-callbacks-after-call
Don't unbind onload/onerror callbacks after invoking them
9 years ago
Raul Ochoa
b7d3c4c344
More clear incrementing for callback counters
9 years ago
Raul Ochoa
e7621672f9
Better naming for callback invocation counter
9 years ago
Raul Ochoa
15977bfe04
Rename existing variable for better context
9 years ago
Raul Ochoa
6a90ed5c15
Merge branch 'master' into dont-remove-callbacks-after-call
Conflicts:
test/image.test.js
9 years ago
Linus Unnebäck
0dbb4723c0
Merge pull request #698 from alum/feature/fbonnevier/remove-broken-install-script
remove old and not working install script
9 years ago
Linus Unnebäck
973ba5c346
version: 1.3.6
9 years ago
Linus Unnebäck
5dd9747c1d
history: 1.3.6
9 years ago
Linus Unnebäck
b908f39845
Merge pull request #696 from zbjornson/compliance
Make toDataURL more spec-compliant
9 years ago
Zach Bjornson
e54183d8d4
Make toDataURL more spec-compliant:
* Use default arguments when undefined arguments are passed.
* Throw TypeError on first invalid argument
* Accept a number 'encoderOptions' as the quality
* Fall through to image/png if an unsupported encoding is requested
* Return "data:," if the canvas has no pixels
* Lower-case the format before testing for support
9 years ago
Filip Bonnevier
d877be393e
remove old and not working install script
9 years ago
Linus Unnebäck
ff1cbe8f6c
Merge pull request #686 from zbjornson/no-jpeg-server-test
Fix server tests in cases when jpeg isn't available
9 years ago
Linus Unnebäck
c65be2ac4e
version: 1.3.5
9 years ago
Linus Unnebäck
73a284f9ce
history: 1.3.5
9 years ago
Linus Unnebäck
22fec8db47
Merge pull request #685 from zbjornson/jpeguri
Add data URI jpeg support (fixes #31 )
9 years ago
Zach Bjornson
9083839667
Fix server tests in cases when jpeg isn't available
9 years ago
Zach Bjornson
d306aa3665
Add data URI jpeg support ( fixes #31 )
9 years ago
Linus Unnebäck
96b9674d89
Merge pull request #677 from LinusU/allow-nodejs-5-failure
travis: temporarily allow node.js 5.x to fail
9 years ago
Linus Unnebäck
9e6a6100d6
travis: temporarily allow node.js 5.x to fail
9 years ago
Linus Unnebäck
873141d89b
version: 1.3.4
9 years ago
Linus Unnebäck
cc828ea946
history: 1.3.4
9 years ago
Linus Unnebäck
83d9da94a6
Merge pull request #671 from zbjornson/master
Use Nan::TypedArrayContents, fix a signed/unsigned comp warning
9 years ago
Linus Unnebäck
f12c54fb39
version: 1.3.3
9 years ago
Linus Unnebäck
6872a935f6
history: 1.3.3
9 years ago
Linus Unnebäck
9472317003
Merge pull request #670 from Agamnentzar/fix-vs2015
Fix compilation on Visual Studio 2015
9 years ago
Zach Bjornson
83a8b27b02
#637 use Nan::TypedArrayContents, fix a signed/unsigned comp warning
9 years ago
Radosław Eichler
9e7c44b4e0
Fix compilation on Visual Studio 2015
9 years ago
Linus Unnebäck
6ea9841307
version: 1.3.2
9 years ago
Linus Unnebäck
3f382dd1bc
history: 1.3.2
9 years ago
Linus Unnebäck
ed92339e09
Merge pull request #669 from inssein/fix-shadow
fix incorrect Y offset for shadows, and also fix scaled shadows
9 years ago
Hussein Jafferjee
5a19f4aa5f
shadowBlur doesn't need to be halved
9 years ago
Hussein Jafferjee
36f3d268ae
fix incorrect Y offset for shadows, and also fix scaled shadows
9 years ago
Linus Unnebäck
d6e0cc7c18
Merge pull request #665 from Automattic/linusu-el-capitan-fix
readme: el capitan upgrade notice
9 years ago
Linus Unnebäck
b26b809101
readme: el capitan upgrade notice
9 years ago
Linus Unnebäck
9e0156128b
Merge pull request #661 from Automattic/readme-installation
readme: update installation instructions
9 years ago
Linus Unnebäck
73b3d634a8
Merge pull request #664 from targos/patch-2
test on node v5.x
9 years ago
Linus Unnebäck
8c2b9425d5
Merge pull request #663 from targos/patch-1
Delete .gitmodules
9 years ago
Michaël Zasso
2743851cff
test on node v5.x
9 years ago
Michaël Zasso
46e3646d91
Delete .gitmodules
The file has been empty since 2011.
9 years ago
Linus Unnebäck
fabf6777a4
version: 1.3.1
9 years ago