Преглед на файлове

pass reference of environment to getUAString

Signed-off-by: Gerald <gera2ld@163.com>
Gerald преди 10 години
родител
ревизия
f0bc25ad62
променени са 4 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      dist/duoshuo-ua-core.min.js
  2. 1 1
      dist/duoshuo-ua-parser-css.min.js
  3. 1 1
      dist/duoshuo-ua-parser.min.js
  4. 1 1
      src/core.js

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/duoshuo-ua-core.min.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/duoshuo-ua-parser-css.min.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/duoshuo-ua-parser.min.js


+ 1 - 1
src/core.js

@@ -29,7 +29,7 @@ function callAfter(local, args) {
 	var i = res.indexOf('<div class="ds-comment-header">');
 	var j = res.indexOf('</div>', i);
 	var func = duoshuoQuery.getUAString || _this.getUAString || emptyString;
-	local.result = res.slice(0, j) + func(local) + res.slice(j);
+	local.result = res.slice(0, j) + func.call(_this, local) + res.slice(j);
 }
 
 function init() {