Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stop the "deprecated" warnings
  • Loading branch information
gkoberger committed Apr 10, 2012
1 parent 2416a0a commit 522fe72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .builder/jetpack/wrapper.js
Expand Up @@ -25,7 +25,7 @@ var omniumWrapper = function(){
}

callbacks[cid] = callback;
postMessage(message);
self.postMessage(message);
}

this.request = function(keys, callback) {
Expand All @@ -34,7 +34,7 @@ var omniumWrapper = function(){
var cid = randomNum();

callbacks[cid] = callback;
postMessage({'cid': cid, 'action': 'storage_get', 'keys': keys});
self.postMessage({'cid': cid, 'action': 'storage_get', 'keys': keys});
}

this.remove = function(name) {
Expand All @@ -46,10 +46,10 @@ var omniumWrapper = function(){
this.getImage = function(url, callback) {
var cid = randomNum();
callbacks[cid] = callback;
postMessage({'cid': cid, 'action': 'image_get', 'url': url});
self.postMessage({'cid': cid, 'action': 'image_get', 'url': url});
}

on('message', function(r) {
self.on('message', function(r) {
var cid = r.cid,
message = undefined;

Expand Down

0 comments on commit 522fe72

Please sign in to comment.