easymarklet 0.0.4 → 0.0.5
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.
@@ -28,6 +28,10 @@
|
|
28
28
|
rpcConfig.remote.closeFrame = {};
|
29
29
|
_this.closeFrame = function(){ _this.consumer.closeFrame() };
|
30
30
|
|
31
|
+
rpcConfig.remote.resizeFrame = {};
|
32
|
+
_this.resizeFrame = function(height){ _this.consumer.resizeFrame(height) };
|
33
|
+
|
34
|
+
|
31
35
|
rpcConfig.local = {};
|
32
36
|
for (var key in bookmarklet.producer.methods) {
|
33
37
|
if (bookmarklet.producer.methods.hasOwnProperty(key)) {
|
@@ -50,8 +54,14 @@
|
|
50
54
|
if(bookmarklet.producer.init){
|
51
55
|
bookmarklet.producer.init();
|
52
56
|
}
|
53
|
-
|
54
|
-
|
57
|
+
var oldHeight = 0;
|
58
|
+
setInterval(function(){
|
59
|
+
var currentHeight = $('body').outerHeight(true); //document.body.scrollHeight;
|
60
|
+
if(currentHeight != oldHeight){
|
61
|
+
_this.resizeFrame(currentHeight);
|
62
|
+
oldHeight = currentHeight;
|
63
|
+
}
|
64
|
+
},200);
|
55
65
|
}
|
56
66
|
}, _this.createRpcConfig()
|
57
67
|
);
|
data/lib/easymarklet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easymarklet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash: -
|
215
|
+
hash: -1209193470262558712
|
216
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
217
|
none: false
|
218
218
|
requirements:
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
segments:
|
223
223
|
- 0
|
224
|
-
hash: -
|
224
|
+
hash: -1209193470262558712
|
225
225
|
requirements: []
|
226
226
|
rubyforge_project:
|
227
227
|
rubygems_version: 1.8.24
|