Skip to content

Commit

Permalink
fixed bug of _this and this
Browse files Browse the repository at this point in the history
  • Loading branch information
drecodeam committed Jun 27, 2012
1 parent 66e84b1 commit 04e6703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/mw.FlickrChecker.js
Expand Up @@ -62,7 +62,7 @@ mw.FlickrChecker.prototype = {


//XXX needs to be replaced by proper image size from Flickr API call //XXX needs to be replaced by proper image size from Flickr API call
var image_url='http://farm' + data.photo.farm + '.staticflickr.com/' + data.photo.server +'/'+ data.photo.id +'_' + data.photo.secret + '_b.jpg'; var image_url='http://farm' + data.photo.farm + '.staticflickr.com/' + data.photo.server +'/'+ data.photo.id +'_' + data.photo.secret + '_b.jpg';
this.file={ _this.file={
name : data.photo.title._content + '.JPG', name : data.photo.title._content + '.JPG',
url : image_url, url : image_url,
fromURL : true, fromURL : true,
Expand All @@ -85,7 +85,7 @@ mw.FlickrChecker.prototype = {
getLicenses: function() { getLicenses: function() {
$.getJSON( this.apiUrl, { 'nojsoncallback': 1, 'method': 'flickr.photos.licenses.getInfo', 'api_key': this.apiKey, 'format': 'json' }, $.getJSON( this.apiUrl, { 'nojsoncallback': 1, 'method': 'flickr.photos.licenses.getInfo', 'api_key': this.apiKey, 'format': 'json' },
function( data ) { function( data ) {
if ( typeof data.licenses != 'undefined' ) { if ( typeof data.licenses != 'undefined' ) {
$.each( data.licenses.license, function(index, value) { $.each( data.licenses.license, function(index, value) {
mw.FlickrChecker.prototype.licenseList[value.id] = value.name; mw.FlickrChecker.prototype.licenseList[value.id] = value.name;
} ); } );
Expand Down

0 comments on commit 04e6703

Please sign in to comment.