Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 185cec8

Browse files
committed
Merge pull request #80 from mobify/v1.1.1-desktop-fallthrough-fix
MobifyJS 1.1.1 release (Desktop fallthrough fix):
2 parents 8a24a03 + 580551f commit 185cec8

File tree

6 files changed

+10
-26
lines changed

6 files changed

+10
-26
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "vendor/mobify-js/1.3/base"]
1111
path = vendor/mobify-js/1.3/base
1212
url = git@github.com:mobify/mobifyjs.git
13+
[submodule "vendor/mobify-js/1.1.1/base"]
14+
path = vendor/mobify-js/1.1.1/base
15+
url = https://github.com/mobify/mobifyjs

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
v0.3.40 - Include Mobify.js 1.1.1 API, fix for Node 0.12.x on Windows
2+
13
v0.3.39 - Make mobify-client compatible with IO.js 1.1.0 and Node.js 0.12.x
4+
25
v0.3.38 - Update 1.0, 1.1 and 1.3 with proper fix for iOS 8.0 scrolling
36
issue
47
v0.3.37 - Revert updates to 1.0, 1.1 and 1.3 that attempted to fix an iOS 8.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobify-client",
3-
"version": "0.3.39",
3+
"version": "0.3.40",
44
"description": "Tools for building and compiling mobify.js adaptations",
55
"author": "Mobify <dev@mobify.com>",
66
"homepage": "http://www.mobifyjs.com",

src/api.coffee

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,7 @@ exports.post = post = (options, path, data, callback) ->
3535

3636
callback null, response
3737

38-
writeThrottled = (buffer, destination, increment=32*1024, sleep=100) ->
39-
if increment < buffer.length
40-
endpoint = increment
41-
else
42-
endpoint = buffer.length
43-
44-
if endpoint == 0
45-
destination.end()
46-
return
47-
48-
sliced_buffer = buffer.slice 0, endpoint
49-
destination.write sliced_buffer
50-
51-
remaining_buffer = buffer.slice endpoint, buffer.length
52-
53-
repeat = () ->
54-
writeThrottled remaining_buffer, destination, increment, sleep
55-
56-
setTimeout repeat, sleep
57-
58-
if process.platform == 'win32'
59-
writeThrottled dataBuffer, request
60-
else
61-
request.end dataBuffer
38+
request.end dataBuffer
6239

6340

6441
exports.upload = upload = (options, project, stream, callback) ->

vendor/mobify-js/1.1.1/base

Submodule base added at 2e7d906

vendor/mobify-js/1.3/base

Submodule base updated 1 file

0 commit comments

Comments
 (0)