diff --git a/build/dist/jquery.jfeed.js b/build/dist/jquery.jfeed.js index 806c9ee..c0c569f 100644 --- a/build/dist/jquery.jfeed.js +++ b/build/dist/jquery.jfeed.js @@ -14,7 +14,8 @@ jQuery.getFeed = function(options) { success: null, failure: null, error: null, - global: true + global: true, + dataType: "xml", }, options); @@ -37,7 +38,7 @@ jQuery.getFeed = function(options) { url: options.url, data: options.data, cache: options.cache, - dataType: (jQuery.browser.msie) ? "text" : "xml", + dataType: (jQuery.browser.msie) ? "text" : options.dataType, success: function(xml) { var feed = new JFeed(xml); if (jQuery.isFunction(options.success)) options.success(feed); diff --git a/build/dist/jquery.jfeed.pack.js b/build/dist/jquery.jfeed.pack.js index 63402b1..10f67b7 100644 --- a/build/dist/jquery.jfeed.pack.js +++ b/build/dist/jquery.jfeed.pack.js @@ -1 +1 @@ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.W=b(7){7=2.R({y:o,L:o,K:Y,x:o,A:o,n:o,J:Y},7);g(7.y){g(2.V(7.A)&&2.m(7.n)===\'o\'){7.n=b(M,z,e){7.A(z,e)}}D g(2.m(7.A)===2.m(7.n)===\'o\'){7.n=b(M,z,e){1j.X&&X.1i(\'W 1h 1g 1f h\',M,z,e)}}1e $.1d({m:\'1c\',y:7.y,L:7.L,K:7.K,1b:(2.T.S)?"6":"4",x:b(4){f h=k I(4);g(2.V(7.x))7.x(h)},n:7.n,J:7.J})}};b I(4){g(4)3.U(4)};I.v={m:\'\',p:\'\',d:\'\',c:\'\',j:\'\',U:b(4){g(2.T.S){f H=k 1a("19.18");H.17(4);4=H}g(2(\'9\',4).E==1){3.m=\'C\';f w=k F(4)}D g(2(\'h\',4).E==1){3.m=\'16\';f w=k G(4)}g(w)2.R(3,w)}};b s(){};s.v={d:\'\',c:\'\',j:\'\',l:\'\',r:\'\'};b G(4){3.u(4)};G.v={u:b(4){f 9=2(\'h\',4).a(0);3.p=\'1.0\';3.d=2(9).5(\'d:i\').6();3.c=2(9).5(\'c:i\').t(\'Q\');3.j=2(9).5(\'15:i\').6();3.B=2(9).t(\'4:14\');3.l=2(9).5(\'l:i\').6();3.q=k P();f h=3;2(\'13\',4).O(b(){f 8=k s();8.d=2(3).5(\'d\').a(0).6();8.c=2(3).5(\'c\').a(0).t(\'Q\');8.j=2(3).5(\'12\').a(0).6();8.l=2(3).5(\'l\').a(0).6();8.r=2(3).5(\'r\').a(0).6();h.q.N(8)})}};b F(4){3.u(4)};F.v={u:b(4){g(2(\'C\',4).E==0)3.p=\'1.0\';D 3.p=2(\'C\',4).a(0).t(\'p\');f 9=2(\'9\',4).a(0);3.d=2(9).5(\'d:i\').6();3.c=2(9).5(\'c:i\').6();3.j=2(9).5(\'j:i\').6();3.B=2(9).5(\'B:i\').6();3.l=2(9).5(\'11:i\').6();3.q=k P();f h=3;2(\'8\',4).O(b(){f 8=k s();8.d=2(3).5(\'d\').a(0).6();8.c=2(3).5(\'c\').a(0).6();8.j=2(3).5(\'j\').a(0).6();8.l=2(3).5(\'10\').a(0).6();8.r=2(3).5(\'Z\').a(0).6();h.q.N(8)})}};',62,82,'||jQuery|this|xml|find|text|options|item|channel|eq|function|link|title||var|if|feed|first|description|new|updated|type|error|null|version|items|id|JFeedItem|attr|_parse|prototype|feedClass|success|url|msg|failure|language|rss|else|length|JRss|JAtom|xmlDoc|JFeed|global|cache|data|xhr|push|each|Array|href|extend|msie|browser|parse|isFunction|getFeed|console|true|guid|pubDate|lastBuildDate|content|entry|lang|subtitle|atom|loadXML|XMLDOM|Microsoft|ActiveXObject|dataType|GET|ajax|return|load|to|failed|log|window'.split('|'))) +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.X=b(6){6=2.S({y:o,M:o,L:Z,x:o,A:o,n:o,J:Z,K:"4",},6);g(6.y){g(2.W(6.A)&&2.m(6.n)===\'o\'){6.n=b(N,z,e){6.A(z,e)}}D g(2.m(6.A)===2.m(6.n)===\'o\'){6.n=b(N,z,e){1j.Y&&Y.1i(\'X 1h 1g 1f h\',N,z,e)}}1e $.1d({m:\'1c\',y:6.y,M:6.M,L:6.L,K:(2.U.T)?"7":6.K,x:b(4){f h=k I(4);g(2.W(6.x))6.x(h)},n:6.n,J:6.J})}};b I(4){g(4)3.V(4)};I.v={m:\'\',p:\'\',d:\'\',c:\'\',j:\'\',V:b(4){g(2.U.T){f H=k 1b("1a.19");H.18(4);4=H}g(2(\'9\',4).E==1){3.m=\'C\';f w=k F(4)}D g(2(\'h\',4).E==1){3.m=\'17\';f w=k G(4)}g(w)2.S(3,w)}};b s(){};s.v={d:\'\',c:\'\',j:\'\',l:\'\',r:\'\'};b G(4){3.u(4)};G.v={u:b(4){f 9=2(\'h\',4).a(0);3.p=\'1.0\';3.d=2(9).5(\'d:i\').7();3.c=2(9).5(\'c:i\').t(\'R\');3.j=2(9).5(\'16:i\').7();3.B=2(9).t(\'4:15\');3.l=2(9).5(\'l:i\').7();3.q=k Q();f h=3;2(\'14\',4).P(b(){f 8=k s();8.d=2(3).5(\'d\').a(0).7();8.c=2(3).5(\'c\').a(0).t(\'R\');8.j=2(3).5(\'13\').a(0).7();8.l=2(3).5(\'l\').a(0).7();8.r=2(3).5(\'r\').a(0).7();h.q.O(8)})}};b F(4){3.u(4)};F.v={u:b(4){g(2(\'C\',4).E==0)3.p=\'1.0\';D 3.p=2(\'C\',4).a(0).t(\'p\');f 9=2(\'9\',4).a(0);3.d=2(9).5(\'d:i\').7();3.c=2(9).5(\'c:i\').7();3.j=2(9).5(\'j:i\').7();3.B=2(9).5(\'B:i\').7();3.l=2(9).5(\'12:i\').7();3.q=k Q();f h=3;2(\'8\',4).P(b(){f 8=k s();8.d=2(3).5(\'d\').a(0).7();8.c=2(3).5(\'c\').a(0).7();8.j=2(3).5(\'j\').a(0).7();8.l=2(3).5(\'11\').a(0).7();8.r=2(3).5(\'10\').a(0).7();h.q.O(8)})}};',62,82,'||jQuery|this|xml|find|options|text|item|channel|eq|function|link|title||var|if|feed|first|description|new|updated|type|error|null|version|items|id|JFeedItem|attr|_parse|prototype|feedClass|success|url|msg|failure|language|rss|else|length|JRss|JAtom|xmlDoc|JFeed|global|dataType|cache|data|xhr|push|each|Array|href|extend|msie|browser|parse|isFunction|getFeed|console|true|guid|pubDate|lastBuildDate|content|entry|lang|subtitle|atom|loadXML|XMLDOM|Microsoft|ActiveXObject|GET|ajax|return|load|to|failed|log|window'.split('|'))) diff --git a/src/jfeed.js b/src/jfeed.js index c11aaa2..97522fa 100644 --- a/src/jfeed.js +++ b/src/jfeed.js @@ -14,7 +14,8 @@ jQuery.getFeed = function(options) { success: null, failure: null, error: null, - global: true + global: true, + dataType: "xml", }, options); @@ -37,7 +38,7 @@ jQuery.getFeed = function(options) { url: options.url, data: options.data, cache: options.cache, - dataType: (jQuery.browser.msie) ? "text" : "xml", + dataType: (jQuery.browser.msie) ? "text" : options.dataType, success: function(xml) { var feed = new JFeed(xml); if (jQuery.isFunction(options.success)) options.success(feed);