Browse files

fixed bug of _this and this

  • Loading branch information...
1 parent 66e84b1 commit 04e6703be4f5d28f16aaddd4bc985b19da8a8596 @drecodeam committed Jun 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 resources/mw.FlickrChecker.js
View
4 resources/mw.FlickrChecker.js
@@ -62,7 +62,7 @@ mw.FlickrChecker.prototype = {
//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';
- this.file={
+ _this.file={
name : data.photo.title._content + '.JPG',
url : image_url,
fromURL : true,
@@ -85,7 +85,7 @@ mw.FlickrChecker.prototype = {
getLicenses: function() {
$.getJSON( this.apiUrl, { 'nojsoncallback': 1, 'method': 'flickr.photos.licenses.getInfo', 'api_key': this.apiKey, 'format': 'json' },
function( data ) {
- if ( typeof data.licenses != 'undefined' ) {
+ if ( typeof data.licenses != 'undefined' ) {
$.each( data.licenses.license, function(index, value) {
mw.FlickrChecker.prototype.licenseList[value.id] = value.name;
} );

0 comments on commit 04e6703

Please sign in to comment.